diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-07-27 21:32:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 09:14:15 -0700 |
commit | e6cfb3ad7209e4f4dcdc14f5fc437db55667041f (patch) | |
tree | 13f6390bd5a31db45012ff93d9b93968256a7ab7 /drivers/hwmon/w83627hf.c | |
parent | 7bef559455fc71f66f8573cc1aafe1dd33966c1c (diff) | |
download | kernel_samsung_espresso10-e6cfb3ad7209e4f4dcdc14f5fc437db55667041f.zip kernel_samsung_espresso10-e6cfb3ad7209e4f4dcdc14f5fc437db55667041f.tar.gz kernel_samsung_espresso10-e6cfb3ad7209e4f4dcdc14f5fc437db55667041f.tar.bz2 |
[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/w83627hf.c')
-rw-r--r-- | drivers/hwmon/w83627hf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index f1ae0e0..0466cc4 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c @@ -958,7 +958,7 @@ device_create_file(&client->dev, &dev_attr_temp##offset##_type); \ } while (0) -static int w83627hf_find(int sioaddr, unsigned short *addr) +static int __init w83627hf_find(int sioaddr, unsigned short *addr) { u16 val; |