ARM: at91/gpio: non-DT builds do not have gpio_chip.of_node field
authorNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 13 Feb 2012 10:26:25 +0000 (11:26 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 1 Mar 2012 12:29:01 +0000 (13:29 +0100)
commit5bc067b71928d3f470d051847aefa55724fd0c95
tree429f233b33053584cecd7204c9c22b61eb561516
parent21f81872788b8089ec4214afad8fc6a0a23f70c8
ARM: at91/gpio: non-DT builds do not have gpio_chip.of_node field

Protect build failure in case of non-DT configuration: the
gpio_chip structure does not have a of_node field in case of
!CONFIG_OF_GPIO.

Keep this in a separate patch as it can be reverted if the
field is added for both DT/non-DT cases.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
arch/arm/mach-at91/gpio.c