From: Alexander Holler Date: Wed, 5 Mar 2014 11:21:01 +0000 (+0100) Subject: gpio: davinci: fix gpio selection for OF X-Git-Tag: v3.15-rc1~105^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=758afe429c501924ac650ad667fd79f4bb06c05a;p=pandora-kernel.git gpio: davinci: fix gpio selection for OF The driver missed an of_xlate function to translate gpio numbers as found in the DT to the correct chip and number. While there I've set #gpio_cells to a fixed value of 2. I've used gpio-pxa.c as template for those changes and tested my changes successfully on a da850 board using entries for gpio-leds in a DT. So I didn't reinvent the wheel but just copied and tested stuff. Thanks to Grygorii Strashko for the hint to the existing code in gpio-pxa. Signed-off-by: Alexander Holler Signed-off-by: Grygorii Strashko Signed-off-by: Linus Walleij --- Reading git-diff-tree failed