aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pc87360.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-07-27 15:32:02 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 12:14:15 -0400
commite6cfb3ad7209e4f4dcdc14f5fc437db55667041f (patch)
tree13f6390bd5a31db45012ff93d9b93968256a7ab7 /drivers/hwmon/pc87360.c
parent7bef559455fc71f66f8573cc1aafe1dd33966c1c (diff)
[PATCH] hwmon: tag super-i/o find functions __init
Super-I/O find functions in hardware monitoring drivers can be tagged __init as they are only called from functions themselves tagged __init. Two of them (smsc47b397 and w83627ehf) already do, but the other four of them (it87, pc87360, smsc47m1 and w83627hf) did not. This saves a few bytes of memory after the drivers are loaded, 192 in the case of the it87 driver. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hwmon/pc87360.c')
-rw-r--r--drivers/hwmon/pc87360.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c
index 1f1b3ca23f6f..c66ae4f6e802 100644
--- a/drivers/hwmon/pc87360.c
+++ b/drivers/hwmon/pc87360.c
@@ -626,7 +626,7 @@ static DEVICE_ATTR(alarms_temp, S_IRUGO, show_temp_alarms, NULL);
626 * Device detection, registration and update 626 * Device detection, registration and update
627 */ 627 */
628 628
629static int pc87360_find(int sioaddr, u8 *devid, unsigned short *addresses) 629static int __init pc87360_find(int sioaddr, u8 *devid, unsigned short *addresses)
630{ 630{
631 u16 val; 631 u16 val;
632 int i; 632 int i;