aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl12xx
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 04:58:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-09-26 15:13:41 -0400
commitc4978e251f3a5cd0576bc411942f08c9a11f62d8 (patch)
treec21c92b67bb098180f3a445be4b5ce5e59fa5ead /drivers/net/wireless/ti/wl12xx
parent90650625dba2852bcf91d5edf472a79e9e333ab7 (diff)
wireless: wl12xx: 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>
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx')
-rw-r--r--drivers/net/wireless/ti/wl12xx/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c
index 1c627da85083..591526b99154 100644
--- a/drivers/net/wireless/ti/wl12xx/main.c
+++ b/drivers/net/wireless/ti/wl12xx/main.c
@@ -1704,7 +1704,7 @@ static struct ieee80211_sta_ht_cap wl12xx_ht_cap = {
1704static int wl12xx_setup(struct wl1271 *wl) 1704static int wl12xx_setup(struct wl1271 *wl)
1705{ 1705{
1706 struct wl12xx_priv *priv = wl->priv; 1706 struct wl12xx_priv *priv = wl->priv;
1707 struct wlcore_platdev_data *pdev_data = wl->pdev->dev.platform_data; 1707 struct wlcore_platdev_data *pdev_data = dev_get_platdata(&wl->pdev->dev);
1708 struct wl12xx_platform_data *pdata = pdev_data->pdata; 1708 struct wl12xx_platform_data *pdata = pdev_data->pdata;
1709 1709
1710 wl->rtable = wl12xx_rtable; 1710 wl->rtable = wl12xx_rtable;