diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:22 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:25 -0400 |
commit | f5d94ff014cb7e6212f40fc6644f3fd68507df33 (patch) | |
tree | dc370a5b6167a5d325beb3536309e3953d1976a2 /drivers/pnp/base.h | |
parent | db9eaeab3e7ab72d773820820f1ba33960ad24c4 (diff) |
PNP: pass resources, not indexes, to pnp_check_port(), et al
The caller already has the struct resource pointer, so no need for
pnp_check_port(), pnp_check_mem(), etc., to look it up again.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r-- | drivers/pnp/base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index eb43fc6bff1..e739d4bba42 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -12,10 +12,10 @@ void pnp_free_option(struct pnp_option *option); | |||
12 | int __pnp_add_device(struct pnp_dev *dev); | 12 | int __pnp_add_device(struct pnp_dev *dev); |
13 | void __pnp_remove_device(struct pnp_dev *dev); | 13 | void __pnp_remove_device(struct pnp_dev *dev); |
14 | 14 | ||
15 | int pnp_check_port(struct pnp_dev * dev, int idx); | 15 | int pnp_check_port(struct pnp_dev *dev, struct resource *res); |
16 | int pnp_check_mem(struct pnp_dev * dev, int idx); | 16 | int pnp_check_mem(struct pnp_dev *dev, struct resource *res); |
17 | int pnp_check_irq(struct pnp_dev * dev, int idx); | 17 | int pnp_check_irq(struct pnp_dev *dev, struct resource *res); |
18 | int pnp_check_dma(struct pnp_dev * dev, int idx); | 18 | int pnp_check_dma(struct pnp_dev *dev, struct resource *res); |
19 | 19 | ||
20 | void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); | 20 | void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); |
21 | 21 | ||