[PATCH] i2c: Add missing __devinit markers to old i2c adapter drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These _setup functions are called from _probe so they can be marked
__devinit.

Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
---
 drivers/i2c/busses/i2c-ali1535.c |    2 +-
 drivers/i2c/busses/i2c-ali15x3.c |    2 +-
 drivers/i2c/busses/i2c-sis5595.c |    2 +-
 drivers/i2c/busses/i2c-sis630.c  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

--- linux-2.6.32-rc1.orig/drivers/i2c/busses/i2c-ali1535.c	2009-10-04 12:41:29.000000000 +0200
+++ linux-2.6.32-rc1/drivers/i2c/busses/i2c-ali1535.c	2009-10-04 13:36:53.000000000 +0200
@@ -138,7 +138,7 @@ static unsigned short ali1535_smba;
    Note the differences between kernels with the old PCI BIOS interface and
    newer kernels with the real PCI interface. In compat.h some things are
    defined to make the transition easier. */
-static int ali1535_setup(struct pci_dev *dev)
+static int __devinit ali1535_setup(struct pci_dev *dev)
 {
 	int retval = -ENODEV;
 	unsigned char temp;
--- linux-2.6.32-rc1.orig/drivers/i2c/busses/i2c-ali15x3.c	2009-10-04 12:41:47.000000000 +0200
+++ linux-2.6.32-rc1/drivers/i2c/busses/i2c-ali15x3.c	2009-10-04 13:36:59.000000000 +0200
@@ -131,7 +131,7 @@ MODULE_PARM_DESC(force_addr,
 static struct pci_driver ali15x3_driver;
 static unsigned short ali15x3_smba;
 
-static int ali15x3_setup(struct pci_dev *ALI15X3_dev)
+static int __devinit ali15x3_setup(struct pci_dev *ALI15X3_dev)
 {
 	u16 a;
 	unsigned char temp;
--- linux-2.6.32-rc1.orig/drivers/i2c/busses/i2c-sis5595.c	2009-10-04 13:23:07.000000000 +0200
+++ linux-2.6.32-rc1/drivers/i2c/busses/i2c-sis5595.c	2009-10-04 13:37:07.000000000 +0200
@@ -142,7 +142,7 @@ static void sis5595_write(u8 reg, u8 dat
 	outb(data, sis5595_base + SMB_DAT);
 }
 
-static int sis5595_setup(struct pci_dev *SIS5595_dev)
+static int __devinit sis5595_setup(struct pci_dev *SIS5595_dev)
 {
 	u16 a;
 	u8 val;
--- linux-2.6.32-rc1.orig/drivers/i2c/busses/i2c-sis630.c	2009-10-04 12:51:21.000000000 +0200
+++ linux-2.6.32-rc1/drivers/i2c/busses/i2c-sis630.c	2009-10-04 13:37:16.000000000 +0200
@@ -389,7 +389,7 @@ static u32 sis630_func(struct i2c_adapte
 		I2C_FUNC_SMBUS_BLOCK_DATA;
 }
 
-static int sis630_setup(struct pci_dev *sis630_dev)
+static int __devinit sis630_setup(struct pci_dev *sis630_dev)
 {
 	unsigned char b;
 	struct pci_dev *dummy = NULL;


-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux