diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:06 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:21 -0400 |
commit | 4ab55d8d4f7b910c4c60e0f8ff70d0dfdd484f02 (patch) | |
tree | 7ae1fd11249b844b7ae53faff5ee2906a6a796c2 /drivers/pnp/isapnp | |
parent | 59284cb4099411bc6f4915a5a4cb76414440c447 (diff) |
PNP: remove more pnp_resource_table arguments
Stop passing around struct pnp_resource_table pointers. In most cases,
the caller doesn't need to know how the resources are stored inside
the struct pnp_dev.
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/isapnp')
-rw-r--r-- | drivers/pnp/isapnp/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c index 1ae3d8996156..b8e639f4f227 100644 --- a/drivers/pnp/isapnp/core.c +++ b/drivers/pnp/isapnp/core.c | |||
@@ -932,9 +932,9 @@ EXPORT_SYMBOL(isapnp_cfg_begin); | |||
932 | EXPORT_SYMBOL(isapnp_cfg_end); | 932 | EXPORT_SYMBOL(isapnp_cfg_end); |
933 | EXPORT_SYMBOL(isapnp_write_byte); | 933 | EXPORT_SYMBOL(isapnp_write_byte); |
934 | 934 | ||
935 | static int isapnp_read_resources(struct pnp_dev *dev, | 935 | static int isapnp_read_resources(struct pnp_dev *dev) |
936 | struct pnp_resource_table *res) | ||
937 | { | 936 | { |
937 | struct pnp_resource_table *res = &dev->res; | ||
938 | int tmp, ret; | 938 | int tmp, ret; |
939 | 939 | ||
940 | dev->active = isapnp_read_byte(ISAPNP_CFG_ACTIVATE); | 940 | dev->active = isapnp_read_byte(ISAPNP_CFG_ACTIVATE); |
@@ -982,7 +982,7 @@ static int isapnp_get_resources(struct pnp_dev *dev) | |||
982 | 982 | ||
983 | pnp_init_resource_table(&dev->res); | 983 | pnp_init_resource_table(&dev->res); |
984 | isapnp_cfg_begin(dev->card->number, dev->number); | 984 | isapnp_cfg_begin(dev->card->number, dev->number); |
985 | ret = isapnp_read_resources(dev, &dev->res); | 985 | ret = isapnp_read_resources(dev); |
986 | isapnp_cfg_end(); | 986 | isapnp_cfg_end(); |
987 | return ret; | 987 | return ret; |
988 | } | 988 | } |