diff options
author | Rene Herman <rene.herman@keyaccess.nl> | 2008-10-16 01:03:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:45 -0400 |
commit | b563cf59c4d67da7d671788a9848416bfa4180ab (patch) | |
tree | 0b67e9264962cc216ac0d3aeed1b2fa0e8d65a8b /drivers/pnp/quirks.c | |
parent | a63cc18f02b941662ca5f6c33adca1aa9e8c1a96 (diff) |
pnp: make the resource type an unsigned long
PnP encodes the resource type directly as its struct resource->flags value
which is an unsigned long. Make it so...
Signed-off-by: Rene Herman <rene.herman@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/quirks.c')
-rw-r--r-- | drivers/pnp/quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index 0bdf9b8a5e58..d15e2b77af88 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c | |||
@@ -245,7 +245,7 @@ static void quirk_system_pci_resources(struct pnp_dev *dev) | |||
245 | */ | 245 | */ |
246 | for_each_pci_dev(pdev) { | 246 | for_each_pci_dev(pdev) { |
247 | for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { | 247 | for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { |
248 | unsigned int type; | 248 | unsigned long type; |
249 | 249 | ||
250 | type = pci_resource_flags(pdev, i) & | 250 | type = pci_resource_flags(pdev, i) & |
251 | (IORESOURCE_IO | IORESOURCE_MEM); | 251 | (IORESOURCE_IO | IORESOURCE_MEM); |