summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2009-12-09 09:00:04 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2009-12-09 09:00:04 +0000
commit259e766530ca6fbd1772f965b064bf21f4999b47 (patch)
treeafb852fd6bd1698009df3f4a3495bae4b3d80230
parent79ede27f42000b416806676c509ca8ffa291894b (diff)
downloadlm-sensors-259e766530ca6fbd1772f965b064bf21f4999b47.tar.gz
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
-rw-r--r--kernel/busses/i2c-ali1535.c2
-rw-r--r--kernel/busses/i2c-ali15x3.c2
-rw-r--r--kernel/busses/i2c-sis5595.c2
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;