From: Frans Klaver Date: Wed, 14 Jan 2015 08:15:39 +0000 (+0100) Subject: power: reset: ltc2952: remove global variable poweroff_panic X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~133^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818ca4c8c7be4910f896c702645009f09813347f;p=pandora-kernel.git 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 Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed