diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:03 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:19 -0400 |
commit | cdef6254e17e98f1071ce1bfc8f2a87997c855d0 (patch) | |
tree | 984f9ac0ce71f9431a2f1d2b4daa120a3abdd30f /drivers/pnp/pnpacpi/rsparser.c | |
parent | cd7ec927d9cd3d2001cbbdce872bd73f6e49c986 (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/rsparser.c')
-rw-r--r-- | drivers/pnp/pnpacpi/rsparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c index a5f5e2130e75..baaf60212779 100644 --- a/drivers/pnp/pnpacpi/rsparser.c +++ b/drivers/pnp/pnpacpi/rsparser.c | |||
@@ -777,9 +777,10 @@ static acpi_status pnpacpi_type_resources(struct acpi_resource *res, void *data) | |||
777 | return AE_OK; | 777 | return AE_OK; |
778 | } | 778 | } |
779 | 779 | ||
780 | int pnpacpi_build_resource_template(acpi_handle handle, | 780 | int pnpacpi_build_resource_template(struct pnp_dev *dev, |
781 | struct acpi_buffer *buffer) | 781 | struct acpi_buffer *buffer) |
782 | { | 782 | { |
783 | acpi_handle handle = dev->data; | ||
783 | struct acpi_resource *resource; | 784 | struct acpi_resource *resource; |
784 | int res_cnt = 0; | 785 | int res_cnt = 0; |
785 | acpi_status status; | 786 | acpi_status status; |