From: David Brownell Date: Mon, 2 Apr 2007 19:46:47 +0000 (-0700) Subject: ARM: OMAP: fix OMAP1 mpuio suspend/resume oops X-Git-Tag: v2.6.22-rc1~1009^2~1^9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fcf126d847c41461d4f034b11541296f3e15d0b2;p=linux-2.6-omap-h63xx.git ARM: OMAP: fix OMAP1 mpuio suspend/resume oops Fix oops in omap16xx mpuio suspend/resume code; field wasn't initialized Signed-off-by: David Brownell Signed-off-by: Tony Lindgren Signed-off-by: Russell King --- diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index df0ff0fd881..9dc6d3617bd 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -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); }