acer-wmi: Mark init data and code as such
authorMathias Krause <minipli@googlemail.com>
Wed, 16 Jul 2014 17:43:04 +0000 (19:43 +0200)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sat, 16 Aug 2014 08:23:52 +0000 (01:23 -0700)
commit76d51dd9a07abcfaf1e3fe67a9656238a89b771f
tree1761d5831576141ed8d4acaa897303ac7de776a0
parent55d1e9d83dd7ba3a6f28241dfac90f07af10d4f4
acer-wmi: Mark init data and code as such

Quite a lot of code and data of acer-wmi.c is only ever used during
initialization. Mark those accordingly -- and constify, where
appropriate -- so the memory can be released afterwards.

All in all those changes move ~10 kB of code and data to the .init
sections, marking them for release after initialization has finished.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/acer-wmi.c