diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-11-12 18:10:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:28 -0500 |
commit | 82df0b28557a3e4cad4b8258b19bb61d097da9df (patch) | |
tree | 7ad3cead7b8b7a1b987009b7ba4a53006568ac82 /drivers/rtc | |
parent | b5ebf0780da1846d985998565a51935d10b807da (diff) |
drivers/rtc/rtc-88pm860x.c: 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>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-88pm860x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index 4e30c85728e5..816504846cdd 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c | |||
@@ -316,7 +316,7 @@ static int pm860x_rtc_probe(struct platform_device *pdev) | |||
316 | unsigned long ticks = 0; | 316 | unsigned long ticks = 0; |
317 | int ret; | 317 | int ret; |
318 | 318 | ||
319 | pdata = pdev->dev.platform_data; | 319 | pdata = dev_get_platdata(&pdev->dev); |
320 | 320 | ||
321 | info = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_rtc_info), | 321 | info = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_rtc_info), |
322 | GFP_KERNEL); | 322 | GFP_KERNEL); |