X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fregulator%2Fab3100.c;h=7d5eaa874b2da9337e387b1271bd2e38a3d25d2e;hb=2386a3b0fbb0c2dcf29694c7df9a72cb268458f0;hp=3be9e46594a134286b59010c3fa83511fa9c510e;hpb=72de4c63e5ebe8e4054ea800d7a8d4b3f033caf2;p=~andy%2Flinux diff --git a/drivers/regulator/ab3100.c b/drivers/regulator/ab3100.c index 3be9e46594a..7d5eaa874b2 100644 --- a/drivers/regulator/ab3100.c +++ b/drivers/regulator/ab3100.c @@ -660,7 +660,7 @@ ab3100_regulator_of_probe(struct platform_device *pdev, struct device_node *np) static int ab3100_regulators_probe(struct platform_device *pdev) { - struct ab3100_platform_data *plfdata = pdev->dev.platform_data; + struct ab3100_platform_data *plfdata = dev_get_platdata(&pdev->dev); struct device_node *np = pdev->dev.of_node; int err = 0; u8 data;