diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:07:35 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-08-26 20:22:11 -0400 |
commit | 87aae1ea82f93f0f00cb955044ea1db3501cf233 (patch) | |
tree | 5230c5f9bf6e78259a61656d7065b3c4386afd02 /drivers/leds/leds-netxbig.c | |
parent | 8465b01827b7a1e0e2464b0a300618bf7add25d8 (diff) |
leds: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-netxbig.c')
-rw-r--r-- | drivers/leds/leds-netxbig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/leds/leds-netxbig.c b/drivers/leds/leds-netxbig.c index c61c5ebcc08e..2f9f141084ba 100644 --- a/drivers/leds/leds-netxbig.c +++ b/drivers/leds/leds-netxbig.c | |||
@@ -306,7 +306,7 @@ create_netxbig_led(struct platform_device *pdev, | |||
306 | struct netxbig_led_data *led_dat, | 306 | struct netxbig_led_data *led_dat, |
307 | const struct netxbig_led *template) | 307 | const struct netxbig_led *template) |
308 | { | 308 | { |
309 | struct netxbig_led_platform_data *pdata = pdev->dev.platform_data; | 309 | struct netxbig_led_platform_data *pdata = dev_get_platdata(&pdev->dev); |
310 | int ret; | 310 | int ret; |
311 | 311 | ||
312 | spin_lock_init(&led_dat->lock); | 312 | spin_lock_init(&led_dat->lock); |
@@ -354,7 +354,7 @@ create_netxbig_led(struct platform_device *pdev, | |||
354 | 354 | ||
355 | static int netxbig_led_probe(struct platform_device *pdev) | 355 | static int netxbig_led_probe(struct platform_device *pdev) |
356 | { | 356 | { |
357 | struct netxbig_led_platform_data *pdata = pdev->dev.platform_data; | 357 | struct netxbig_led_platform_data *pdata = dev_get_platdata(&pdev->dev); |
358 | struct netxbig_led_data *leds_data; | 358 | struct netxbig_led_data *leds_data; |
359 | int i; | 359 | int i; |
360 | int ret; | 360 | int ret; |
@@ -391,7 +391,7 @@ err_free_leds: | |||
391 | 391 | ||
392 | static int netxbig_led_remove(struct platform_device *pdev) | 392 | static int netxbig_led_remove(struct platform_device *pdev) |
393 | { | 393 | { |
394 | struct netxbig_led_platform_data *pdata = pdev->dev.platform_data; | 394 | struct netxbig_led_platform_data *pdata = dev_get_platdata(&pdev->dev); |
395 | struct netxbig_led_data *leds_data; | 395 | struct netxbig_led_data *leds_data; |
396 | int i; | 396 | int i; |
397 | 397 | ||