From 5619c333227a8525c8e0cac42cbd80eb0b670708 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 27 Jan 2009 14:38:42 +0000 Subject: massive-dust.patch Signed-off-by: Andy Green --- arch/arm/mach-s3c2440/mach-gta02.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'arch/arm/mach-s3c2440/mach-gta02.c') diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 0b7ff25f8fb..5b537f70d56 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -99,6 +99,9 @@ #include <../drivers/input/touchscreen/ts_filter_group.h> #include +#include +#include +#include /* arbitrates which sensor IRQ owns the shared SPI bus */ static spinlock_t motion_irq_lock; @@ -524,7 +527,7 @@ gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) static int pmu_callback(struct device *dev, unsigned int feature, enum pmu_event event) { - struct pcf50633 *pcf = gta02_pcf_pdata.pcf; + struct pcf50633 *pcf = gta02_pcf; if (gta02_usb_vbus_draw) { pcf50633_mbc_usb_curlim_set(pcf, gta02_usb_vbus_draw); @@ -1016,10 +1019,8 @@ static void gta02_udc_command(enum s3c2410_udc_cmd_e cmd) static void gta02_udc_vbus_draw(unsigned int ma) { - if (!gta02_pcf_pdata.pcf) { - printk(KERN_ERR "********** NULL gta02_pcf_pdata.pcf *****\n"); + if (!gta02_pcf) return; - } gta02_usb_vbus_draw = ma; @@ -1728,6 +1729,12 @@ static void gta02_pcf50633_attach_child_devices(struct device *parent_device) { int n; + gta02_pcf = pcf; + + gta02_pcf = pcf; + + gta02_pcf = pcf; + for (n = 0; n < ARRAY_SIZE(gta02_devices_pmu_children); n++) gta02_devices_pmu_children[n]->dev.parent = parent_device; @@ -1738,7 +1745,7 @@ static void gta02_pcf50633_attach_child_devices(struct device *parent_device) static void gta02_poweroff(void) { - pcf50633_reg_set_bit_mask(gta02_pcf_pdata.pcf, PCF50633_REG_OOCSHDWN, + pcf50633_reg_set_bit_mask(gta02_pcf, PCF50633_REG_OOCSHDWN, PCF50633_OOCSHDWN_GOSTDBY, PCF50633_OOCSHDWN_GOSTDBY); } -- cgit v1.2.3