diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-viapro.c')
-rw-r--r-- | drivers/i2c/busses/i2c-viapro.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-viapro.c b/drivers/i2c/busses/i2c-viapro.c index 7957ce515891..faef99560f23 100644 --- a/drivers/i2c/busses/i2c-viapro.c +++ b/drivers/i2c/busses/i2c-viapro.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <linux/ioport.h> | 50 | #include <linux/ioport.h> |
51 | #include <linux/i2c.h> | 51 | #include <linux/i2c.h> |
52 | #include <linux/init.h> | 52 | #include <linux/init.h> |
53 | #include <linux/acpi.h> | ||
53 | #include <asm/io.h> | 54 | #include <asm/io.h> |
54 | 55 | ||
55 | static struct pci_dev *vt596_pdev; | 56 | static struct pci_dev *vt596_pdev; |
@@ -356,6 +357,10 @@ static int __devinit vt596_probe(struct pci_dev *pdev, | |||
356 | } | 357 | } |
357 | 358 | ||
358 | found: | 359 | found: |
360 | error = acpi_check_region(vt596_smba, 8, vt596_driver.name); | ||
361 | if (error) | ||
362 | return error; | ||
363 | |||
359 | if (!request_region(vt596_smba, 8, vt596_driver.name)) { | 364 | if (!request_region(vt596_smba, 8, vt596_driver.name)) { |
360 | dev_err(&pdev->dev, "SMBus region 0x%x already in use!\n", | 365 | dev_err(&pdev->dev, "SMBus region 0x%x already in use!\n", |
361 | vt596_smba); | 366 | vt596_smba); |