Hi Mark, Thanks for reviewing. On 8 January 2014 18:00, Mark Brown <broonie@xxxxxxxxxx> wrote: > On Wed, Jan 08, 2014 at 11:56:29AM +0530, Sachin Kamat wrote: > >> + if (!iodev->dev->of_node) { >> + if (pdata) { >> + goto common_reg; >> + } else { >> + dev_err(pdev->dev.parent, >> + "Platform data or DT node not supplied\n"); >> + return -ENODEV; >> + } >> + } > > The driver shouldn't need these to probe, it should be able to start in > read only mode with no configuration. OK. > >> +static int __init s2mpa01_pmic_init(void) >> +{ >> + return platform_driver_register(&s2mpa01_pmic_driver); >> +} >> +subsys_initcall(s2mpa01_pmic_init); > > module_platform_driver(). Just a small doubt here. Wouldn't changing this from subsys init to module init cause problems to devices like mmc which would want the regulators available (where they are not already enabled by the boot loader)? -- With warm regards, Sachin -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html