Commit f8770ea0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] i2c i2c-i801.c: remove check_region() usage.

parent 3f437937
...@@ -158,10 +158,10 @@ static int i801_setup(struct pci_dev *dev) ...@@ -158,10 +158,10 @@ static int i801_setup(struct pci_dev *dev)
} }
} }
if (check_region(i801_smba, (isich4 ? 16 : 8))) { if (!request_region(i801_smba, (isich4 ? 16 : 8), "i801-smbus")) {
dev_err(&dev->dev, "I801_smb region 0x%x already in use!\n", dev_err(&dev->dev, "I801_smb region 0x%x already in use!\n",
i801_smba); i801_smba);
error_return = -ENODEV; error_return = -EBUSY;
goto END; goto END;
} }
...@@ -181,8 +181,6 @@ static int i801_setup(struct pci_dev *dev) ...@@ -181,8 +181,6 @@ static int i801_setup(struct pci_dev *dev)
dev_warn(&dev->dev, "enabling SMBus device\n"); dev_warn(&dev->dev, "enabling SMBus device\n");
} }
request_region(i801_smba, (isich4 ? 16 : 8), "i801-smbus");
if (temp & 0x02) if (temp & 0x02)
dev_dbg(&dev->dev, "I801 using Interrupt SMI# for SMBus.\n"); dev_dbg(&dev->dev, "I801 using Interrupt SMI# for SMBus.\n");
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment