From: Anirudh Ghayal Date: Sat, 16 Jul 2011 13:31:15 +0000 (+1000) Subject: Signed-off-by: Anirudh Ghayal X-Git-Tag: next-20110726~2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31a7e946c9c0686086e98e0370f58600095abacd;p=karo-tx-linux.git Signed-off-by: Anirudh Ghayal Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index 84341b662258..d420e9d877e8 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -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;