module: fix sysfs cleanup for !CONFIG_SYSFS
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 18:59:09 +0000 (12:59 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 03:29:10 +0000 (12:29 +0930)
commit36b0360d17dc3928cc96347a18a3a1cdbb7e506d
treee963d162006f842a475435988eba04a579114f0d
parent8f6d037815466cb25e7de8f00536eca71d94d4c3
module: fix sysfs cleanup for !CONFIG_SYSFS

Restore the stub module_remove_modinfo_attrs, remove the now-unused
!CONFIG_SYSFS module_sysfs_init.

Also, rename mod_kobject_remove() to mod_sysfs_teardown() as
it is the logical counterpart to mod_sysfs_setup now.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c