[PATCH V2 1/3] at91sam9g45_devices: fix compilation if NAND driver is enabled
Marc Kleine-Budde
mkl at pengutronix.de
Tue Feb 22 06:32:44 EST 2011
From: Juergen Beisert <jbe at pengutronix.de>
Enabling the AT91 NAND driver fails with the following error:
arch/arm/mach-at91/at91sam9g45_devices.c: In function 'at91_add_device_nand':
arch/arm/mach-at91/at91sam9g45_devices.c:101: error: 'NAND_ECC_HW' undeclared (first use in this function)
Include the missing "nand.h".
Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
arch/arm/mach-at91/at91sam9g45_devices.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c
index ddb005a..306d1e4 100644
--- a/arch/arm/mach-at91/at91sam9g45_devices.c
+++ b/arch/arm/mach-at91/at91sam9g45_devices.c
@@ -17,6 +17,7 @@
#include <mach/board.h>
#include <mach/gpio.h>
#include <mach/io.h>
+#include <linux/mtd/nand.h>
#include "generic.h"
--
1.7.2.3
More information about the barebox
mailing list