aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-amd756.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-amd756.c')
-rw-r--r--drivers/i2c/busses/i2c-amd756.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-amd756.c b/drivers/i2c/busses/i2c-amd756.c
index bd4f6380fabe..26acc657e5c9 100644
--- a/drivers/i2c/busses/i2c-amd756.c
+++ b/drivers/i2c/busses/i2c-amd756.c
@@ -45,6 +45,7 @@
45#include <linux/ioport.h> 45#include <linux/ioport.h>
46#include <linux/i2c.h> 46#include <linux/i2c.h>
47#include <linux/init.h> 47#include <linux/init.h>
48#include <linux/acpi.h>
48#include <asm/io.h> 49#include <asm/io.h>
49 50
50/* AMD756 SMBus address offsets */ 51/* AMD756 SMBus address offsets */
@@ -368,6 +369,11 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
368 amd756_ioport += SMB_ADDR_OFFSET; 369 amd756_ioport += SMB_ADDR_OFFSET;
369 } 370 }
370 371
372 error = acpi_check_region(amd756_ioport, SMB_IOSIZE,
373 amd756_driver.name);
374 if (error)
375 return error;
376
371 if (!request_region(amd756_ioport, SMB_IOSIZE, amd756_driver.name)) { 377 if (!request_region(amd756_ioport, SMB_IOSIZE, amd756_driver.name)) {
372 dev_err(&pdev->dev, "SMB region 0x%x already in use!\n", 378 dev_err(&pdev->dev, "SMB region 0x%x already in use!\n",
373 amd756_ioport); 379 amd756_ioport);