Thread (1 message) 1 message, 1 author, 2011-07-10

Re: [PATCH] mfd: convert devicetree to platform data on max8925

From: Mark Brown <hidden>
Date: 2011-07-10 09:17:31
Also in: linux-arm-kernel

On Sun, Jul 10, 2011 at 04:20:27PM +0900, Grant Likely wrote:
On Fri, Jul 08, 2011 at 06:20:26PM +0800, Haojian Zhuang wrote:
quoted
+	if (pdata == NULL)
+		return NULL;
+	pdata->regulator[0] = kzalloc(sizeof(struct regulator_init_data)
+			* MAX8925_MAX_REGULATOR, GFP_KERNEL);
ditto.
Is it appropriate to allocated the entire table of regulators?  From
the parse_regulator function above, it looks like only one of the
regulators will actually get registered (I've not dug deeply into what
the driver needs here though).
If the code/binding doesn't allow the use of all the regulators on the
device the code is probably wrong, it'd be very unusual to have hardware
like that.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help