]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf731ed4c228eabeea8ba94f55e62e2ed15816568
tree1761d5831576141ed8d4acaa897303ac7de776a0
parentc4d3f296c483faf1b129a9ce1ca5f73e11290abf
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