Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Add missing __devinit markers to old i2c adapter drivers

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

Signed-off-by: Jean Delvare <khali@linux-fr.org>

+4 -4
+1 -1
drivers/i2c/busses/i2c-ali1535.c
··· 138 138 Note the differences between kernels with the old PCI BIOS interface and 139 139 newer kernels with the real PCI interface. In compat.h some things are 140 140 defined to make the transition easier. */ 141 - static int ali1535_setup(struct pci_dev *dev) 141 + static int __devinit ali1535_setup(struct pci_dev *dev) 142 142 { 143 143 int retval = -ENODEV; 144 144 unsigned char temp;
+1 -1
drivers/i2c/busses/i2c-ali15x3.c
··· 131 131 static struct pci_driver ali15x3_driver; 132 132 static unsigned short ali15x3_smba; 133 133 134 - static int ali15x3_setup(struct pci_dev *ALI15X3_dev) 134 + static int __devinit ali15x3_setup(struct pci_dev *ALI15X3_dev) 135 135 { 136 136 u16 a; 137 137 unsigned char temp;
+1 -1
drivers/i2c/busses/i2c-sis5595.c
··· 142 142 outb(data, sis5595_base + SMB_DAT); 143 143 } 144 144 145 - static int sis5595_setup(struct pci_dev *SIS5595_dev) 145 + static int __devinit sis5595_setup(struct pci_dev *SIS5595_dev) 146 146 { 147 147 u16 a; 148 148 u8 val;
+1 -1
drivers/i2c/busses/i2c-sis630.c
··· 389 389 I2C_FUNC_SMBUS_BLOCK_DATA; 390 390 } 391 391 392 - static int sis630_setup(struct pci_dev *sis630_dev) 392 + static int __devinit sis630_setup(struct pci_dev *sis630_dev) 393 393 { 394 394 unsigned char b; 395 395 struct pci_dev *dummy = NULL;