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

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>
drivers/firmware/google/gsmi.c