From: Mathias Krause Date: Wed, 16 Jul 2014 17:43:05 +0000 (+0200) Subject: acer-wmi: Mark acer_wmi_keymap[] as __initconst X-Git-Tag: v4.9.8~5845^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87e448493297b32631ef7db3bd5bcf723e9600b2;p=platform%2Fkernel%2Flinux-rpi3.git acer-wmi: Mark acer_wmi_keymap[] as __initconst sparse_keymap_setup() will make a copy of the keymap, so we can release the master copy after initialization. Signed-off-by: Mathias Krause Cc: "Lee, Chun-Yi" Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index bbf78b2..48aae3a 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -96,7 +96,7 @@ enum acer_wmi_event_ids { WMID_ACCEL_EVENT = 0x5, }; -static const struct key_entry acer_wmi_keymap[] = { +static const struct key_entry acer_wmi_keymap[] __initconst = { {KE_KEY, 0x01, {KEY_WLAN} }, /* WiFi */ {KE_KEY, 0x03, {KEY_WLAN} }, /* WiFi */ {KE_KEY, 0x04, {KEY_WLAN} }, /* WiFi */