Commit abe38388 authored by Jean Delvare's avatar Jean Delvare

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: default avatarJean Delvare <khali@linux-fr.org>
parent da44bdeb
...@@ -138,7 +138,7 @@ static unsigned short ali1535_smba; ...@@ -138,7 +138,7 @@ static unsigned short ali1535_smba;
Note the differences between kernels with the old PCI BIOS interface and 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 newer kernels with the real PCI interface. In compat.h some things are
defined to make the transition easier. */ 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; int retval = -ENODEV;
unsigned char temp; unsigned char temp;
......
...@@ -131,7 +131,7 @@ MODULE_PARM_DESC(force_addr, ...@@ -131,7 +131,7 @@ MODULE_PARM_DESC(force_addr,
static struct pci_driver ali15x3_driver; static struct pci_driver ali15x3_driver;
static unsigned short ali15x3_smba; 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; u16 a;
unsigned char temp; unsigned char temp;
......
...@@ -142,7 +142,7 @@ static void sis5595_write(u8 reg, u8 data) ...@@ -142,7 +142,7 @@ static void sis5595_write(u8 reg, u8 data)
outb(data, sis5595_base + SMB_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; u16 a;
u8 val; u8 val;
......
...@@ -389,7 +389,7 @@ static u32 sis630_func(struct i2c_adapter *adapter) ...@@ -389,7 +389,7 @@ static u32 sis630_func(struct i2c_adapter *adapter)
I2C_FUNC_SMBUS_BLOCK_DATA; 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; unsigned char b;
struct pci_dev *dummy = NULL; struct pci_dev *dummy = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment