From 5caa2140525079aa62bb921fdfdd2fce890ef6cd Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 9 Dec 2009 09:00:04 +0000 Subject: [PATCH] Add missing static and __devinit markers to setup functions. Backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-2.10@5808 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/busses/i2c-ali1535.c | 2 +- kernel/busses/i2c-ali15x3.c | 2 +- kernel/busses/i2c-sis5595.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/busses/i2c-ali1535.c b/kernel/busses/i2c-ali1535.c index ca3d15b3..7038a61e 100644 --- a/kernel/busses/i2c-ali1535.c +++ b/kernel/busses/i2c-ali1535.c @@ -145,7 +145,7 @@ static unsigned short ali1535_smba = 0; 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. */ -int ali1535_setup(struct pci_dev *ALI1535_dev) +static int __devinit ali1535_setup(struct pci_dev *ALI1535_dev) { int error_return = 0; unsigned char temp; diff --git a/kernel/busses/i2c-ali15x3.c b/kernel/busses/i2c-ali15x3.c index 19c40207..2c507f2d 100644 --- a/kernel/busses/i2c-ali15x3.c +++ b/kernel/busses/i2c-ali15x3.c @@ -136,7 +136,7 @@ MODULE_PARM_DESC(force_addr, static struct pci_driver ali15x3_driver; static unsigned short ali15x3_smba = 0; -static int ali15x3_setup(struct pci_dev *ALI15X3_dev) +static int __devinit ali15x3_setup(struct pci_dev *ALI15X3_dev) { u16 a; unsigned char temp; diff --git a/kernel/busses/i2c-sis5595.c b/kernel/busses/i2c-sis5595.c index 6c729ce7..15cb6cf7 100644 --- a/kernel/busses/i2c-sis5595.c +++ b/kernel/busses/i2c-sis5595.c @@ -154,7 +154,7 @@ static void sis5595_write(u8 reg, u8 data) 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. */ -int sis5595_setup(struct pci_dev *SIS5595_dev) +static int __devinit sis5595_setup(struct pci_dev *SIS5595_dev) { u16 a; u8 val;