diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-03-10 18:10:01 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-19 04:46:04 -0400 |
commit | 1ecb016e18149a1ea3de7dfd98f60b4b03e5e855 (patch) | |
tree | d48a87a8a9ec43c4872498c66b056460e4ce5394 /drivers/gpio | |
parent | 4d8440b93ce8a8544199804dbcf997b2ab3dad11 (diff) |
gpio / ACPI: Use local variable instead of ACPI_HANDLE()
In acpi_gpiochip_request_interrupts() the handle local
variable already contains the value that we want to pass
to acpi_walk_resources(), so it is better to use that
variable instead of evaluating ACPI_HANDLE() once more
for the same device.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index c4919966453d..e958f716df94 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c | |||
@@ -300,7 +300,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) | |||
300 | return; | 300 | return; |
301 | 301 | ||
302 | INIT_LIST_HEAD(&acpi_gpio->events); | 302 | INIT_LIST_HEAD(&acpi_gpio->events); |
303 | acpi_walk_resources(ACPI_HANDLE(chip->dev), "_AEI", | 303 | acpi_walk_resources(handle, "_AEI", |
304 | acpi_gpiochip_request_interrupt, acpi_gpio); | 304 | acpi_gpiochip_request_interrupt, acpi_gpio); |
305 | } | 305 | } |
306 | 306 | ||