]> git.baikalelectronics.ru Git - kernel.git/commit
efivarfs: Allow unloading when build as module
authorMathias Krause <minipli@googlemail.com>
Thu, 23 Oct 2014 21:20:37 +0000 (23:20 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 11 Nov 2014 22:22:27 +0000 (22:22 +0000)
commitd97714e154b095c05d75bed454c046d91f75fc17
treea0c6e4f0afe9c85bc1d014a0f72b76f47395f37e
parent431599d88574e61c220968c5a6da09264c448033
efivarfs: Allow unloading when build as module

There is no need to keep the module loaded when it serves no function in
case the EFI runtime services are disabled. Return an error in this case
so loading the module will fail.

Also supply a module_exit function to allow unloading the module.

Last, but not least, set the owner of the file_system_type struct.

Cc: Jeremy Kerr <jk@ozlabs.org>
Cc: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
fs/efivarfs/super.c