]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: don't provide dt init code for at91x40
authorArnd Bergmann <arnd@arndb.de>
Thu, 13 Mar 2014 16:44:55 +0000 (17:44 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:19:28 +0000 (18:19 +0100)
commit68d8ce6b1ae153303eec59a46ef01c101776f0dc
tree411f1aefbc9b61ad60c7e7b9d726137d8e341a2a
parenta0c1340d17f9c5261c5ae9900b71fc936b349d62
ARM: at91: don't provide dt init code for at91x40

at91x40 has no support for device tree, but Kconfig allows
us to enable CONFIG_OF anyway, causing a link error in the
at91 reset controller initialization.

The easiest fix is to adapt the existing #ifdef to omit
the broken code on at91x40 where it is never called anyway.

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/setup.c