diff options
| author | Patrick McHardy <kaber@trash.net> | 2010-04-20 16:02:01 +0200 | 
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2010-04-20 16:02:01 +0200 | 
| commit | 62910554656cdcd6b6f84a5154c4155aae4ca231 (patch) | |
| tree | dcf14004f6fd2ef7154362ff948bfeba0f3ea92d /drivers/pci/ioapic.c | |
| parent | 22265a5c3c103cf8c50be62e6c90d045eb649e6d (diff) | |
| parent | ab9304717f7624c41927f442e6b6d418b2d8b3e4 (diff) | |
| download | olio-linux-3.10-62910554656cdcd6b6f84a5154c4155aae4ca231.tar.xz olio-linux-3.10-62910554656cdcd6b6f84a5154c4155aae4ca231.zip  | |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
	Documentation/feature-removal-schedule.txt
	net/ipv6/netfilter/ip6t_REJECT.c
	net/netfilter/xt_limit.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'drivers/pci/ioapic.c')
| -rw-r--r-- | drivers/pci/ioapic.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pci/ioapic.c b/drivers/pci/ioapic.c index 3e0d7b5dd1b..203508b227b 100644 --- a/drivers/pci/ioapic.c +++ b/drivers/pci/ioapic.c @@ -18,6 +18,7 @@  #include <linux/pci.h>  #include <linux/acpi.h> +#include <linux/slab.h>  #include <acpi/acpi_bus.h>  struct ioapic { @@ -31,9 +32,9 @@ static int ioapic_probe(struct pci_dev *dev, const struct pci_device_id *ent)  	acpi_status status;  	unsigned long long gsb;  	struct ioapic *ioapic; -	u64 addr;  	int ret;  	char *type; +	struct resource *res;  	handle = DEVICE_ACPI_HANDLE(&dev->dev);  	if (!handle) @@ -69,13 +70,12 @@ static int ioapic_probe(struct pci_dev *dev, const struct pci_device_id *ent)  	if (pci_request_region(dev, 0, type))  		goto exit_disable; -	addr = pci_resource_start(dev, 0); -	if (acpi_register_ioapic(ioapic->handle, addr, ioapic->gsi_base)) +	res = &dev->resource[0]; +	if (acpi_register_ioapic(ioapic->handle, res->start, ioapic->gsi_base))  		goto exit_release;  	pci_set_drvdata(dev, ioapic); -	dev_info(&dev->dev, "%s at %#llx, GSI %u\n", type, addr, -		 ioapic->gsi_base); +	dev_info(&dev->dev, "%s at %pR, GSI %u\n", type, res, ioapic->gsi_base);  	return 0;  exit_release:  |