ARM: at91: fix broken "if () else" statement
authorArnd Bergmann <arnd@arndb.de>
Thu, 13 Mar 2014 16:47:23 +0000 (17:47 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:19:30 +0000 (18:19 +0100)
commit871336a93794d9144a94c51a85489cb890462f64
tree640c283d553a6ec9346b63549e81b52ff946b12c
parentc85fc989f92a1590477e22bf582712f9ab35f48e
ARM: at91: fix broken "if () else" statement

If CONFIG_PATA_AT91 is disabled, the code in at91_add_device_cf
is turned into invalid C statements due to the lack of an
expression before the 'else' clause.

This moves the first half of the condition inside of the #ifdef,
which seems to be what the author intended.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
arch/arm/mach-at91/at91sam9260_devices.c