Message ID | 2bf23f9f05b747674419be6008822bef43085626.1521794177.git.sean.wang@mediatek.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/rtc/rtc-mt6397.c b/drivers/rtc/rtc-mt6397.c index bfc5d6f..d133d1f 100644 --- a/drivers/rtc/rtc-mt6397.c +++ b/drivers/rtc/rtc-mt6397.c @@ -16,6 +16,7 @@ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/module.h> +#include <linux/of_platform.h> #include <linux/regmap.h> #include <linux/rtc.h> #include <linux/jiffies.h> @@ -349,7 +350,7 @@ static int mtk_rtc_probe(struct platform_device *pdev) return ret; } - return 0; + return devm_of_platform_populate(&pdev->dev); } #ifdef CONFIG_PM_SLEEP