diff options
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 4 | ||||
-rw-r--r-- | drivers/pnp/pnpacpi/pnpacpi.h | 2 | ||||
-rw-r--r-- | drivers/pnp/pnpacpi/rsparser.c | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index fd3fca6dddd3..27546873880c 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); |
diff --git a/drivers/pnp/pnpacpi/pnpacpi.h b/drivers/pnp/pnpacpi/pnpacpi.h index f28e2ed66fa3..116c591d8634 100644 --- a/drivers/pnp/pnpacpi/pnpacpi.h +++ b/drivers/pnp/pnpacpi/pnpacpi.h | |||
@@ -8,5 +8,5 @@ | |||
8 | acpi_status pnpacpi_parse_allocated_resource(acpi_handle, struct pnp_resource_table*); | 8 | acpi_status pnpacpi_parse_allocated_resource(acpi_handle, struct pnp_resource_table*); |
9 | acpi_status pnpacpi_parse_resource_option_data(acpi_handle, struct pnp_dev*); | 9 | acpi_status pnpacpi_parse_resource_option_data(acpi_handle, struct pnp_dev*); |
10 | int pnpacpi_encode_resources(struct pnp_resource_table *, struct acpi_buffer *); | 10 | int pnpacpi_encode_resources(struct pnp_resource_table *, struct acpi_buffer *); |
11 | int pnpacpi_build_resource_template(acpi_handle, struct acpi_buffer*); | 11 | int pnpacpi_build_resource_template(struct pnp_dev *, struct acpi_buffer *); |
12 | #endif | 12 | #endif |
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; |