Re: [PATCH 2/2] regulator: add a regulator driver for the AS3711 PMIC

From: Mark Brown
Date: Thu Nov 22 2012 - 13:32:17 EST


On Wed, Nov 21, 2012 at 07:21:11PM +0100, Guennadi Liakhovetski wrote:

> + if (!pdata) {
> + dev_err(&pdev->dev, "No platform data, exiting...\n");
> + return -ENODEV;
> + }

There's no reason to require platform data, the driver can still support
readback of the current device state for diagnostic purposes with no
configuration.

Attachment: signature.asc
Description: Digital signature