From 67b7a1c5e40b7c4a398e8023a49c0688c1a0eb23 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Fri, 22 Jan 2010 12:27:16 +0100 Subject: Replace glamo gpio probe callback with generic solution. --- arch/arm/mach-s3c2442/mach-gta02.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c index b182c3392a2..3d566f54ef4 100644 --- a/arch/arm/mach-s3c2442/mach-gta02.c +++ b/arch/arm/mach-s3c2442/mach-gta02.c @@ -210,12 +210,6 @@ static struct platform_device spigpio_device = { }, }; -static void gta02_glamo_registered(struct device *dev) -{ - spigpio_device.dev.parent = dev; - platform_device_register(&spigpio_device); -} - static struct fb_videomode gta02_glamo_modes[] = { { .name = "480x640", @@ -259,7 +253,6 @@ static struct glamo_mmc_platform_data gta02_glamo_mmc_pdata = { static struct glamo_gpio_platform_data gta02_glamo_gpio_pdata = { .base = GTA02_GPIO_GLAMO_BASE, - .registered = gta02_glamo_registered, }; static struct glamo_platform_data gta02_glamo_pdata = { @@ -1129,11 +1122,20 @@ struct gta02_device_children { void (*probed_callback)(struct device *dev); }; +static struct platform_device* gta02_glamo_gpio_children[] = { + &spigpio_device, +}; + static struct platform_device* gta02_hdq_children[] = { &bq27000_battery_device, }; static struct gta02_device_children gta02_device_children[] = { + { + .dev_name = "glamo-gpio.0", + .num_children = 1, + .children = gta02_glamo_gpio_children, + }, { .dev_name = "hdq.0", .num_children = 1, -- cgit v1.2.3