From fd4f31cef7294750acf96fdee6d6681a553b48b1 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 27 Jan 2009 20:40:35 +0000 Subject: fix-gps-init-before-gta02-pcf.patch Signed-off-by: Andy Green --- arch/arm/mach-s3c2440/mach-gta02.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-s3c2440') diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index b8811169743..26f1f2d039c 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -1662,6 +1662,8 @@ static void gta02_pmu_regulator_registered(struct pcf50633 *pcf, int id) { struct platform_device *regulator, *pdev; + gta02_pcf = pcf; + regulator = pcf->regulator_pdev[id]; switch(id) { @@ -1693,8 +1695,6 @@ static void gta02_pmu_attach_child_devices(struct pcf50633 *pcf) { int n; - gta02_pcf = pcf; - for (n = 0; n < ARRAY_SIZE(gta02_devices_pmu_children); n++) gta02_devices_pmu_children[n]->dev.parent = pcf->dev; -- cgit v1.2.3