gpio/em: Add Device Tree support
authorMagnus Damm <damm@opensource.se>
Tue, 26 Feb 2013 13:26:23 +0000 (22:26 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 6 Mar 2013 01:12:26 +0000 (09:12 +0800)
commit753c5983ddd38022a680a36f5d66b23b185c9b62
tree3caf63dd7f8579a0eda026edd1d4cbb5e57d6aa0
parent8d4c277e185c31359cf70573d8b0351fb7dd0dfe
gpio/em: Add Device Tree support

Update the Emma Mobile GPIO driver to add DT support.

The patch simply adds a two-cell xlate function and
updates the probe code to allow configuration via DT
using the "ngpios" property plus OF id in the same
style as gpio-mvebu.c. The code is also adjusted to
use postcore_initcall() to force early setup.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-em.c