aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl4030-madc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:10:05 +0900
committerLee Jones <lee.jones@linaro.org>2013-07-31 13:01:29 +0100
commit334a41ce9b753ec615e8c6c50ee07d6197190610 (patch)
treea56c8e04be30b8839ba11179ceffaad0b0bb8bc2 /drivers/mfd/twl4030-madc.c
parentmfd: wm831x: Remove erronious bits per word set (diff)
downloadlinux-dev-334a41ce9b753ec615e8c6c50ee07d6197190610.tar.xz
linux-dev-334a41ce9b753ec615e8c6c50ee07d6197190610.zip
mfd: 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: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/twl4030-madc.c')
-rw-r--r--drivers/mfd/twl4030-madc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c
index 1ea54d4d003a..4c583e471339 100644
--- a/drivers/mfd/twl4030-madc.c
+++ b/drivers/mfd/twl4030-madc.c
@@ -701,7 +701,7 @@ static int twl4030_madc_set_power(struct twl4030_madc_data *madc, int on)
static int twl4030_madc_probe(struct platform_device *pdev)
{
struct twl4030_madc_data *madc;
- struct twl4030_madc_platform_data *pdata = pdev->dev.platform_data;
+ struct twl4030_madc_platform_data *pdata = dev_get_platdata(&pdev->dev);
int ret;
u8 regval;