commit | 818ca4c8c7be4910f896c702645009f09813347f | [log] [tgz] |
---|---|---|
author | Frans Klaver <frans.klaver@xsens.com> | Wed Jan 14 09:15:39 2015 +0100 |
committer | Sebastian Reichel <sre@kernel.org> | Tue Jan 20 13:58:28 2015 +0100 |
tree | f33234d6a4fb59ba8aa5750d6bacbcb1aaaad15d | |
parent | a5f67be5200787aacc7143144bdab7efe7cd268a [diff] |
power: reset: ltc2952: remove global variable poweroff_panic As per Documentation/CodingStyle ch.4, we should keep global variables to a mininum. Move the panic state into the driver data, regardless of whether panic is a system state or not. This removes the need for the custom _init and _exit functions, so replace them with a call to the module_platform_driver() macro. Signed-off-by: Frans Klaver <frans.klaver@xsens.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>