Commit f1045f5e authored by Luciano Coelho's avatar Luciano Coelho Committed by John W. Linville

wlcore: remove newly introduced alloc/OOM messages

In commit 0d2e7a5c (wireless: Remove unnecessary alloc/OOM messages,
alloc cleanups) OOM messages after alloc were removed from the wlcore
modules.

Commit afb43e6d (wlcore: remove if_ops from platform_data)
reintroduced a couple of those.  This patch removes them.
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d9d76a04
...@@ -229,10 +229,8 @@ static int wl1271_probe(struct sdio_func *func, ...@@ -229,10 +229,8 @@ static int wl1271_probe(struct sdio_func *func,
return -ENODEV; return -ENODEV;
pdev_data = kzalloc(sizeof(*pdev_data), GFP_KERNEL); pdev_data = kzalloc(sizeof(*pdev_data), GFP_KERNEL);
if (!pdev_data) { if (!pdev_data)
dev_err(&func->dev, "can't allocate platdev_data\n");
goto out; goto out;
}
pdev_data->if_ops = &sdio_ops; pdev_data->if_ops = &sdio_ops;
......
...@@ -332,10 +332,8 @@ static int wl1271_probe(struct spi_device *spi) ...@@ -332,10 +332,8 @@ static int wl1271_probe(struct spi_device *spi)
int ret = -ENOMEM; int ret = -ENOMEM;
pdev_data = kzalloc(sizeof(*pdev_data), GFP_KERNEL); pdev_data = kzalloc(sizeof(*pdev_data), GFP_KERNEL);
if (!pdev_data) { if (!pdev_data)
dev_err(&spi->dev, "can't allocate platdev_data\n");
goto out; goto out;
}
pdev_data->pdata = spi->dev.platform_data; pdev_data->pdata = spi->dev.platform_data;
if (!pdev_data->pdata) { if (!pdev_data->pdata) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment