diff options
author | Jean Delvare <jdelvare@suse.de> | 2008-07-14 16:38:33 -0400 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-07-14 16:38:33 -0400 |
commit | 54fb4a05af0a4b814e6716cfdf3fa97fc6be7a32 (patch) | |
tree | b3a258dce4f1bc8ccb58541efae444ba89f9fc55 /drivers/i2c/busses/i2c-isch.c | |
parent | 2373c1801afd06d3a206376902b39a98458c9cfb (diff) |
i2c: Check for ACPI resource conflicts
Check for ACPI resource conflicts in i2c bus drivers. I've included
all recent SMBus master drivers for PC hardware.
I've voluntarily left out:
* Drivers that don't run on PCs: they can't conflict with ACPI.
* Bit-banged bus device drivers: it's very unlikely that ACPI would
deal with such buses.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-isch.c')
-rw-r--r-- | drivers/i2c/busses/i2c-isch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-isch.c b/drivers/i2c/busses/i2c-isch.c index 8d648911a7f5..b9c01aa90036 100644 --- a/drivers/i2c/busses/i2c-isch.c +++ b/drivers/i2c/busses/i2c-isch.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/i2c.h> | 35 | #include <linux/i2c.h> |
36 | #include <linux/init.h> | 36 | #include <linux/init.h> |
37 | #include <linux/io.h> | 37 | #include <linux/io.h> |
38 | #include <linux/acpi.h> | ||
38 | 39 | ||
39 | /* SCH SMBus address offsets */ | 40 | /* SCH SMBus address offsets */ |
40 | #define SMBHSTCNT (0 + sch_smba) | 41 | #define SMBHSTCNT (0 + sch_smba) |
@@ -279,6 +280,8 @@ static int __devinit sch_probe(struct pci_dev *dev, | |||
279 | dev_err(&dev->dev, "SMBus base address uninitialized!\n"); | 280 | dev_err(&dev->dev, "SMBus base address uninitialized!\n"); |
280 | return -ENODEV; | 281 | return -ENODEV; |
281 | } | 282 | } |
283 | if (acpi_check_region(sch_smba, SMBIOSIZE, sch_driver.name)) | ||
284 | return -EBUSY; | ||
282 | if (!request_region(sch_smba, SMBIOSIZE, sch_driver.name)) { | 285 | if (!request_region(sch_smba, SMBIOSIZE, sch_driver.name)) { |
283 | dev_err(&dev->dev, "SMBus region 0x%x already in use!\n", | 286 | dev_err(&dev->dev, "SMBus region 0x%x already in use!\n", |
284 | sch_smba); | 287 | sch_smba); |