diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 04:57:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 15:13:40 -0400 |
commit | 5f4fe16bac118ed9e88fdf14380e1c1345376a7d (patch) | |
tree | ac594ea5192a2c8f8dffde6ed9379e2552c4d6a6 | |
parent | 7204c978278797356e5142fc5d749f360d787e01 (diff) |
wireless: wl1251: 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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ti/wl1251/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl1251/spi.c b/drivers/net/wireless/ti/wl1251/spi.c index c7dc6feab2ff..1342f81e683d 100644 --- a/drivers/net/wireless/ti/wl1251/spi.c +++ b/drivers/net/wireless/ti/wl1251/spi.c | |||
@@ -243,7 +243,7 @@ static int wl1251_spi_probe(struct spi_device *spi) | |||
243 | struct wl1251 *wl; | 243 | struct wl1251 *wl; |
244 | int ret; | 244 | int ret; |
245 | 245 | ||
246 | pdata = spi->dev.platform_data; | 246 | pdata = dev_get_platdata(&spi->dev); |
247 | if (!pdata) { | 247 | if (!pdata) { |
248 | wl1251_error("no platform data"); | 248 | wl1251_error("no platform data"); |
249 | return -ENODEV; | 249 | return -ENODEV; |