Re: [PATCH 2/3] regulator: Add support for S2MPA01 regulator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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().

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux