]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
authorAnirudh Ghayal <aghayal@codeaurora.org>
Sat, 16 Jul 2011 13:31:15 +0000 (23:31 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:22 +0000 (15:05 +1000)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-pm8xxx.c

index 84341b66225842f20e33da229840c292700bacbb..d420e9d877e85e9cb7a6d3ccd3b7a5391ef1c69c 100644 (file)
@@ -389,7 +389,8 @@ static int __devinit pm8xxx_rtc_probe(struct platform_device *pdev)
        bool rtc_write_enable = false;
        struct pm8xxx_rtc *rtc_dd;
        struct resource *rtc_resource;
-       const struct pm8xxx_rtc_platform_data *pdata = mfd_get_data(pdev);
+       const struct pm8xxx_rtc_platform_data *pdata =
+                                               dev_get_platdata(&pdev->dev);
 
        if (pdata != NULL)
                rtc_write_enable = pdata->rtc_write_enable;