Re: [PATCH 2/2] regulator: da9052: add device tree support

2012-04-12 Thread Mark Brown
On Thu, Apr 12, 2012 at 11:39:42PM +0800, Ying-Chun Liu (PaulLiu) wrote: > +#ifdef CONFIG_OF > + struct device_node *nproot = da9052->dev->of_node; > + struct device_node *np; > + int c; > + > + if (!nproot) { > + ret = -ENODEV; >

[PATCH 2/2] regulator: da9052: add device tree support

2012-04-12 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch adds device tree support for dialog regulators Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Mark Brown Cc: Liam Girdwood Cc: Samuel Ortiz Cc: Shawn Guo Cc: Ashish Jangam --- drivers/regulator/da9052-regulator.c | 44 ++