]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/powerpc: Eliminate duplication of of_get_named_gpio_flags()
authorGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Dec 2011 16:25:57 +0000 (09:25 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Dec 2011 20:40:16 +0000 (13:40 -0700)
commit7e4e5f642d6b29b8031645b2fd6c44f99a2cb8cd
treede928bf30efd84464d173359ae29f6a48b545b31
parent32b791589d8cf97f627da81d8377906505ee1340
gpio/powerpc: Eliminate duplication of of_get_named_gpio_flags()

A large chunk of qe_pin_request() is unnecessarily cut-and-paste
directly from of_get_named_gpio_flags().  This patch cuts out the
duplicate code and replaces it with a call to of_get_gpio().

v2: fixed compile error due to missing gpio_to_chip()

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/gpio.c
drivers/gpio/gpiolib.c
include/asm-generic/gpio.h