summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-09-01 16:21:18 +0200
committerAnatolij Gustschin <agust@denx.de>2008-10-25 20:33:10 +0200
commit23bb28f0f76b46c4b573374b0bb3b3f23d85ef55 (patch)
tree7afb2a66544d5003bbd91f9869ea851a9b6299f4
parentd9d8c7c696dec370ca714c03beb6e79d4c90bd5e (diff)
downloadu-boot-imx-23bb28f0f76b46c4b573374b0bb3b3f23d85ef55.zip
u-boot-imx-23bb28f0f76b46c4b573374b0bb3b3f23d85ef55.tar.gz
u-boot-imx-23bb28f0f76b46c4b573374b0bb3b3f23d85ef55.tar.bz2
atmel_lcdfb: Eliminate unneeded #include <asm/arch/hardware.h>
atmel_lcdfb doesn't actually need anything from asm/arch/hardware.h. It includes a file that does, asm/arch/gpio.h, but this file doesn't include <asm/arch/hardware.h> like it's supposed to. Add the missing include to asm/arch/gpio.h and remove the workaround from the atmel_lcdfb driver. This makes the driver compile on avr32. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
-rw-r--r--drivers/video/atmel_lcdfb.c1
-rw-r--r--include/asm-arm/arch-at91/gpio.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index b332a82..7f0dceb 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -24,7 +24,6 @@
#include <common.h>
#include <asm/io.h>
-#include <asm/arch/hardware.h>
#include <asm/arch/gpio.h>
#include <asm/arch/clk.h>
#include <lcd.h>
diff --git a/include/asm-arm/arch-at91/gpio.h b/include/asm-arm/arch-at91/gpio.h
index c4d7b97..e2d375b 100644
--- a/include/asm-arm/arch-at91/gpio.h
+++ b/include/asm-arm/arch-at91/gpio.h
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <asm/errno.h>
#include <asm/arch/at91_pio.h>
+#include <asm/arch/hardware.h>
#define PIN_BASE 32