regulator: max8997: remove dependency on platform_data pointer
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 20 Jun 2011 08:30:17 +0000 (17:30 +0900)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 8 Jul 2011 18:14:57 +0000 (19:14 +0100)
commit6e0414a5c89c708efe67f828f3a9c12293ce326e
treea921fe8da670e0f197e7d22842579a437e45da08
parentdbb48e7c3db4871803fc990864e37917e413ccb2
regulator: max8997: remove dependency on platform_data pointer

The platform_data (pdata) may be pointing to __initdata section, which
may be free'd from the memory. The dependency on pdata in non-init
functions is removed in this patch to allow platform to declare
__initdata for platform data.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/max8997.c