aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:08 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:11:08 +0000
commit975b2fbb162c0317cd35469d4e0b54a6a251d4a2 (patch)
tree8d318d58aa709a66009709ebc11e36686b60346f /arch
parent92949dafeccb965be53596c3b4b34df94472bbdd (diff)
fix-gps-power-child-of-pcf50633.patch
GPS power control device is obviously a child of pcf50633 since it wants to meddle with regulators. Define it to be so in the device tree. Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index b0284971236..51317b4a92c 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -542,6 +542,10 @@ static struct platform_device gta01_pm_bt_dev = {
.name = "neo1973-pm-bt",
};
+static struct platform_device gta02_pm_gsm_dev = {
+ .name = "neo1973-pm-gsm",
+};
+
/* this is called when pc50633 is probed, unfortunately quite late in the
* day since it is an I2C bus device. Here we can belatedly define some
* platform devices with the advantage that we can mark the pcf50633 as the
@@ -556,6 +560,8 @@ static void gta02_pcf50633_attach_child_devices(struct device *parent_device)
{
gta01_pm_gps_dev.dev.parent = parent_device;
gta01_pm_bt_dev.dev.parent = parent_device;
+ gta02_pm_gsm_dev.dev.parent = parent_device;
+
/*
* Glamo is a child of PMU because SD Card needs power up until it can
* logically suspend the card... without this power is taken first
@@ -565,6 +571,7 @@ static void gta02_pcf50633_attach_child_devices(struct device *parent_device)
platform_device_register(&gta01_pm_bt_dev);
platform_device_register(&gta01_pm_gps_dev);
+ platform_device_register(&gta02_pm_gsm_dev);
mangle_glamo_res_by_system_rev();
platform_device_register(&gta02_glamo_dev);
@@ -1389,9 +1396,6 @@ static struct platform_device gta02_button_dev = {
.resource = gta02_button_resources,
};
-static struct platform_device gta02_pm_gsm_dev = {
- .name = "neo1973-pm-gsm",
-};
static struct platform_device gta02_pm_usbhost_dev = {
.name = "neo1973-pm-host",
@@ -1705,15 +1709,12 @@ static void __init gta02_machine_init(void)
platform_device_register(&s3c_device_spi_acc);
platform_device_register(&gta02_button_dev);
- platform_device_register(&gta02_pm_gsm_dev);
platform_device_register(&gta02_pm_usbhost_dev);
mangle_pmu_pdata_by_system_rev();
platform_device_register(&gta02_pmu_dev);
platform_device_register(&gta02_vibrator_dev);
platform_device_register(&gta02_led_dev);
-
-
platform_device_register(&gta02_sdio_dev);
platform_add_devices(gta02_devices, ARRAY_SIZE(gta02_devices));