Commit 3ec8a8d8 authored by Jingoo Han's avatar Jingoo Han Committed by John W. Linville

wireless: cw1200: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f4116702
......@@ -375,7 +375,7 @@ static struct hwbus_ops cw1200_spi_hwbus_ops = {
static int cw1200_spi_probe(struct spi_device *func)
{
const struct cw1200_platform_data_spi *plat_data =
func->dev.platform_data;
dev_get_platdata(&func->dev);
struct hwbus_priv *self;
int status;
......@@ -453,7 +453,7 @@ static int cw1200_spi_disconnect(struct spi_device *func)
}
kfree(self);
}
cw1200_spi_off(func->dev.platform_data);
cw1200_spi_off(dev_get_platdata(&func->dev));
return 0;
}
......
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