lkml.org 
[lkml]   [2014]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] regulator: Add support for S2MPA01 regulator
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.

> +static int __init s2mpa01_pmic_init(void)
> +{
> + return platform_driver_register(&s2mpa01_pmic_driver);
> +}
> +subsys_initcall(s2mpa01_pmic_init);

module_platform_driver().
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-01-08 13:41    [W:0.110 / U:1.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site