ARM: OMAP: fix OMAP1 mpuio suspend/resume oops
authorDavid Brownell <david-b@pacbell.net>
Mon, 2 Apr 2007 19:46:47 +0000 (12:46 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 May 2007 09:57:38 +0000 (10:57 +0100)
Fix oops in omap16xx mpuio suspend/resume code; field wasn't initialized

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-omap/gpio.c

index df0ff0fd881a119a779572960e321b906199a4fe..9dc6d3617bdb8182f02b900522830331446f85fc 100644 (file)
@@ -1178,6 +1178,8 @@ static struct platform_device omap_mpuio_device = {
 
 static inline void mpuio_init(void)
 {
+       platform_set_drvdata(&omap_mpuio_device, &gpio_bank_1610[0]);
+
        if (platform_driver_register(&omap_mpuio_driver) == 0)
                (void) platform_device_register(&omap_mpuio_device);
 }