Signed-off-by: Anirudh Ghayal <aghayal@xxxxxxxxxxxxxx> --- drivers/rtc/rtc-pm8xxx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index 8cbad75..e19e71c 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -399,7 +399,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; -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html