From f83d0461771f606732631d5e200d25e1e30be74c Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Tue, 6 Sep 2011 23:20:25 -0700 Subject: SAUCE: mx53_loco: prevent gpio_keys_button data being released BugLink: http://bugs.launchpad.net/bugs/746994 gpio_keys_button data will be used in the gpio_keys.c driver for later access, esp. in the gpio_keys_isr(). And this also caused resuming to be not working, prevent the data from being released by removing __initconst here. The true fix, however, will be gpio_keys.c not to assume the data will be always available and make a copy. Signed-off-by: Eric Miao --- arch/arm/mach-mx5/board-mx53_loco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c index 200eb6f01a1f..fa128f6f1180 100644 --- a/arch/arm/mach-mx5/board-mx53_loco.c +++ b/arch/arm/mach-mx5/board-mx53_loco.c @@ -222,7 +222,7 @@ static iomux_v3_cfg_t mx53_loco_pads[] = { .wakeup = wake, \ } -static const struct gpio_keys_button loco_buttons[] __initconst = { +static const struct gpio_keys_button loco_buttons[] = { GPIO_BUTTON(MX53_LOCO_POWER, KEY_POWER, 1, "power", 1), GPIO_BUTTON(MX53_LOCO_UI1, KEY_VOLUMEUP, 1, "volume-up", 0), GPIO_BUTTON(MX53_LOCO_UI2, KEY_VOLUMEDOWN, 1, "volume-down", 0), -- cgit v1.2.3