firmware: gsmi: remove sysfs entries when unload the module
authorAxel Lin <axel.lin@gmail.com>
Wed, 29 Jun 2011 07:57:53 +0000 (15:57 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 22:17:16 +0000 (15:17 -0700)
This patch removes sysfs entries in gsmi_exit() and gsmi_init() error path.

Also move the driver successfully loaded message to the end of gsmi_init()
and return proper error if register_efivars() fails.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found