aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/pnpacpi/core.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:03 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:19 -0400
commitcdef6254e17e98f1071ce1bfc8f2a87997c855d0 (patch)
tree984f9ac0ce71f9431a2f1d2b4daa120a3abdd30f /drivers/pnp/pnpacpi/core.c
parentcd7ec927d9cd3d2001cbbdce872bd73f6e49c986 (diff)
PNPACPI: pass pnp_dev instead of acpi_handle
Pass the pnp_dev pointer when possible instead of the acpi_handle. This allows better error messages and reduces the chance of error in the caller. 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/pnpacpi/core.c')
-rw-r--r--drivers/pnp/pnpacpi/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index fd3fca6dddd..27546873880 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -88,10 +88,10 @@ static int pnpacpi_set_resources(struct pnp_dev *dev,
88{ 88{
89 acpi_handle handle = dev->data; 89 acpi_handle handle = dev->data;
90 struct acpi_buffer buffer; 90 struct acpi_buffer buffer;
91 int ret = 0; 91 int ret;
92 acpi_status status; 92 acpi_status status;
93 93
94 ret = pnpacpi_build_resource_template(handle, &buffer); 94 ret = pnpacpi_build_resource_template(dev, &buffer);
95 if (ret) 95 if (ret)
96 return ret; 96 return ret;
97 ret = pnpacpi_encode_resources(res, &buffer); 97 ret = pnpacpi_encode_resources(res, &buffer);