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)
commit46b51eb9e14afb3bde4bc2fe3bbc22ce012647d4
tree05ab778507e4ba9a13c8dec630fccb8646cf9623
parentaddd65aac7bcfed7348048b3ce24774718fc44c3
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