On 12/11/2016 at 12:07:25 +0200, Nicolae Rosia wrote : > @@ -625,15 +631,11 @@ static int twl_rtc_resume(struct device *dev) > > static SIMPLE_DEV_PM_OPS(twl_rtc_pm_ops, twl_rtc_suspend, twl_rtc_resume); > > -#ifdef CONFIG_OF > static const struct of_device_id twl_rtc_of_match[] = { > {.compatible = "ti,twl4030-rtc", }, > { }, > }; > MODULE_DEVICE_TABLE(of, twl_rtc_of_match); > -#endif > - > -MODULE_ALIAS("platform:twl_rtc"); > > static struct platform_driver twl4030rtc_driver = { > .probe = twl_rtc_probe, You can then get rid of of_match_ptr() -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html