diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-29 00:34:05 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 09:22:21 +0200 |
commit | 59284cb4099411bc6f4915a5a4cb76414440c447 (patch) | |
tree | 2965bbad48655a6c1e0bf2ef5d51994ab28d627d /drivers/pnp/manager.c | |
parent | PNP: add debug output to option registration (diff) | |
download | linux-59284cb4099411bc6f4915a5a4cb76414440c447.tar.xz linux-59284cb4099411bc6f4915a5a4cb76414440c447.zip |
PNP: remove pnp_resource_table from internal get/set interfaces
When we call protocol->get() and protocol->set() methods, we currently
supply pointers to both the pnp_dev and the pnp_resource_table even
though the pnp_resource_table should always be the one associated with
the pnp_dev.
This removes the pnp_resource_table arguments to make it clear that
these methods only operate on the specified 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/manager.c')
-rw-r--r-- | drivers/pnp/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/manager.c b/drivers/pnp/manager.c index c28caf272c11..6a1f0b0b24b3 100644 --- a/drivers/pnp/manager.c +++ b/drivers/pnp/manager.c @@ -473,7 +473,7 @@ int pnp_start_dev(struct pnp_dev *dev) return -EINVAL; } - if (dev->protocol->set(dev, &dev->res) < 0) { + if (dev->protocol->set(dev) < 0) { dev_err(&dev->dev, "activation failed\n"); return -EIO; } |