]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
i2c: Add missing __devinit markers to old i2c adapter drivers
authorJean Delvare <khali@linux-fr.org>
Sun, 6 Dec 2009 16:06:23 +0000 (17:06 +0100)
committerJean Delvare <khali@linux-fr.org>
Sun, 6 Dec 2009 16:06:23 +0000 (17:06 +0100)
These _setup functions are called from _probe so they can be marked
__devinit.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-ali15x3.c
drivers/i2c/busses/i2c-sis5595.c
drivers/i2c/busses/i2c-sis630.c

index d108450df064552b56f5886200231f3e53e8c57b..8de7d7b87bb07f26aecf2f2bb6ac79b2952bc3f9 100644 (file)
@@ -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;
index d627fceb790b9e16c3fb2b15c1e544a653e1a46d..e7e3205f1286e146a4b6630768cbf640484b5822 100644 (file)
@@ -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;
index 139f0c7f12a406db35d9b73f08ce4ab2f47132a3..844569f7d8b789d1ef4f5755332bc36ac0bef3df 100644 (file)
@@ -142,7 +142,7 @@ static void sis5595_write(u8 reg, u8 data)
        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;
index 70ca41e90e58741d9e0a1cce9088e380f69fa48c..68cff7af7013453f1f72a345adacdf28ed09cf9b 100644 (file)
@@ -389,7 +389,7 @@ static u32 sis630_func(struct i2c_adapter *adapter)
                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;