]> git.baikalelectronics.ru Git - kernel.git/commit
msi-wmi: rework init
authorAnisse Astier <anisse@astier.eu>
Thu, 10 Dec 2009 13:18:15 +0000 (14:18 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 17:40:53 +0000 (12:40 -0500)
commitfe12f7bc38180af03b04ad2b4cda91112d216d69
tree05ab778507e4ba9a13c8dec630fccb8646cf9623
parentbdd9dc6491f1c6d2cbf3978097bb6880949fec58
msi-wmi: rework init

There should be less code duplication with usage of gotos
Driver won't load if there's no hardware to control
Safer error handling at input driver allocation

Signed-off-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/msi-wmi.c