aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-piix4.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-piix4.c')
-rw-r--r--drivers/i2c/busses/i2c-piix4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c
index 85d69f3e624f..924e84a53488 100644
--- a/drivers/i2c/busses/i2c-piix4.c
+++ b/drivers/i2c/busses/i2c-piix4.c
@@ -39,6 +39,7 @@
39#include <linux/i2c.h> 39#include <linux/i2c.h>
40#include <linux/init.h> 40#include <linux/init.h>
41#include <linux/dmi.h> 41#include <linux/dmi.h>
42#include <linux/acpi.h>
42#include <asm/io.h> 43#include <asm/io.h>
43 44
44 45
@@ -168,6 +169,9 @@ static int __devinit piix4_setup(struct pci_dev *PIIX4_dev,
168 } 169 }
169 } 170 }
170 171
172 if (acpi_check_region(piix4_smba, SMBIOSIZE, piix4_driver.name))
173 return -EBUSY;
174
171 if (!request_region(piix4_smba, SMBIOSIZE, piix4_driver.name)) { 175 if (!request_region(piix4_smba, SMBIOSIZE, piix4_driver.name)) {
172 dev_err(&PIIX4_dev->dev, "SMBus region 0x%x already in use!\n", 176 dev_err(&PIIX4_dev->dev, "SMBus region 0x%x already in use!\n",
173 piix4_smba); 177 piix4_smba);