patch i2c-hwmon-tag-superio-functions-__init.patch
Subsystems (3)
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
Subject: hwmon: tag super-i/o find functions __init
to my gregkh-2.6 tree. Its filename is
i2c-hwmon-tag-superio-functions-__init.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
Patches currently in gregkh-2.6 which might be from [email protected] are
i2c/i2c-max6875-documentation-update.patchi2c/i2c-max6875-simplify.patchi2c/i2c-hwmon-class-01.patchi2c/i2c-hwmon-class-02.patchi2c/i2c-hwmon-class-03.patchi2c/i2c-missing-space.patchi2c/i2c-nforce2-cleanup.patchi2c/i2c-hwmon-split-01.patchi2c/i2c-hwmon-split-02.patchi2c/i2c-hwmon-split-03.patchi2c/i2c-hwmon-split-04.patchi2c/i2c-hwmon-split-05.patchi2c/i2c-hwmon-split-06.patchi2c/i2c-hwmon-split-07.patchi2c/i2c-hwmon-split-08.patchi2c/i2c-hwmon-split-09.patchi2c/i2c-max6875-cleanup.patchi2c/i2c-max6875-documentation-cleanup.patchi2c/i2c-max6875-kobj_to_i2c_client.patchi2c/i2c-24rf08-corruption-prevention.patchi2c/i2c-missing-newlines.patchi2c/i2c-refactor-message.patchi2c/i2c-use-time_after.patchi2c/i2c-hwmon-document-w83627ehg.patchi2c/i2c-hwmon-lm78-j.patchi2c/i2c-hwmon-soften-lm75.patchi2c/i2c-hwmon-tag-superio-functions-__init.patch
From [email protected] Wed Jul 27 12:34:10 2005
Date: Wed, 27 Jul 2005 21:32:02 +0200
From: Jean Delvare <[email protected]>
To: Greg KH <[email protected]>
Cc: LM Sensors <[email protected]>
Subject: hwmon: tag super-i/o find functions __init
Message-Id: <[email protected]>
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.
drivers/hwmon/it87.c +1 -1
@@ -707,7 +707,7 @@ }/* SuperIO detection - will change isa_address if a chip is found */ -static int it87_find (int *address) +static int __init it87_find (int *address) {int err = -ENODEV ;
drivers/hwmon/pc87360.c +1 -1
@@ -626,7 +626,7 @@* Device detection, registration and update */ -static int pc87360_find (int sioaddr,u8 *devid,unsigned short *addresses) +static int __init pc87360_find (int sioaddr,u8 *devid,unsigned short *addresses) {u16 val;int i;
drivers/hwmon/smsc47m1.c +1 -1
@@ -345,7 +345,7 @@ static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL); -static int smsc47m1_find (unsigned short *addr) +static int __init smsc47m1_find (unsigned short *addr) {u8 val;
drivers/hwmon/w83627hf.c +1 -1
@@ -958,7 +958,7 @@ }while (0 ) -static int w83627hf_find(int sioaddr, unsigned short *addr) +static int __init w83627hf_find(int sioaddr, unsigned short *addr) {u16 val;
Signature · 1 line
Jean Delvare