From: Grant Likely Date: Mon, 12 Dec 2011 16:25:57 +0000 (-0700) Subject: gpio/powerpc: Eliminate duplication of of_get_named_gpio_flags() X-Git-Tag: v3.3-rc1~173^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a2d397a6eb5cf40c382d9e3d4bc04aaeb025336;p=pandora-kernel.git 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 Cc: Benjamin Herrenschmidt Cc: Kumar Gala --- Reading git-diff-tree failed