summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-10 09:27:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-08 15:42:04 +0100
commitb67b2671c2b7fe3fd33481f820efd9de17ed4ab7 (patch)
treed348054a0c88f34edb3fd77b74804dc41ae1e186 /drivers
parent6fecd2aaca209884a0ec1f58ccc42b91d1d4b828 (diff)
downloadbarebox-b67b2671c2b7fe3fd33481f820efd9de17ed4ab7.tar.gz
treewide: Add missing includes
A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/ahci.c1
-rw-r--r--drivers/ata/ide-sff.c1
-rw-r--r--drivers/ata/pata-imx.c1
-rw-r--r--drivers/ata/sata-imx.c1
-rw-r--r--drivers/base/bus.c1
-rw-r--r--drivers/base/driver.c1
-rw-r--r--drivers/base/platform.c1
-rw-r--r--drivers/gpio/gpio-imx.c1
-rw-r--r--drivers/i2c/busses/i2c-imx.c1
-rw-r--r--drivers/i2c/i2c.c1
-rw-r--r--drivers/mci/imx-esdhc.c1
-rw-r--r--drivers/mci/mci-core.c1
-rw-r--r--drivers/mfd/mc13xxx.c1
-rw-r--r--drivers/mfd/stmpe-i2c.c1
-rw-r--r--drivers/mtd/core.c1
-rw-r--r--drivers/mtd/devices/m25p80.c1
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c1
-rw-r--r--drivers/pinctrl/imx-iomux-v3.c1
-rw-r--r--drivers/pinctrl/pinctrl.c2
-rw-r--r--drivers/serial/serial_imx.c1
-rw-r--r--drivers/spi/imx_spi.c1
-rw-r--r--drivers/usb/imx/chipidea-imx.c2
-rw-r--r--drivers/usb/imx/imx-usb-misc.c2
-rw-r--r--drivers/usb/imx/imx-usb-phy.c2
-rw-r--r--drivers/watchdog/imxwd.c1
25 files changed, 29 insertions, 0 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index f9cf2d1..96138cf 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -29,6 +29,7 @@
#include <init.h>
#include <errno.h>
#include <io.h>
+#include <of.h>
#include <malloc.h>
#include <scsi.h>
#include <linux/ctype.h>
diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c
index a7f2647..3d5932e 100644
--- a/drivers/ata/ide-sff.c
+++ b/drivers/ata/ide-sff.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <ata_drive.h>
#include <io.h>
+#include <errno.h>
#include <clock.h>
#include <disks.h>
#include <malloc.h>
diff --git a/drivers/ata/pata-imx.c b/drivers/ata/pata-imx.c
index 93809c2..fd3a1cb 100644
--- a/drivers/ata/pata-imx.c
+++ b/drivers/ata/pata-imx.c
@@ -30,6 +30,7 @@
#include <ata_drive.h>
#include <platform_ide.h>
#include <io.h>
+#include <of.h>
#include <linux/err.h>
#include <linux/clk.h>
diff --git a/drivers/ata/sata-imx.c b/drivers/ata/sata-imx.c
index ef7989e..b7bd110 100644
--- a/drivers/ata/sata-imx.c
+++ b/drivers/ata/sata-imx.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <ata_drive.h>
#include <io.h>
+#include <of.h>
#include <clock.h>
#include <disks.h>
#include <driver.h>
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 4357020..b383d09 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <driver.h>
#include <errno.h>
+#include <of.h>
LIST_HEAD(bus_list);
EXPORT_SYMBOL(bus_list);
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 80e0ea8..4250fb0 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -30,6 +30,7 @@
#include <linux/ctype.h>
#include <errno.h>
#include <fs.h>
+#include <of.h>
#include <linux/list.h>
#include <complete.h>
#include <pinctrl.h>
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 34a79b2..e053ec7 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -20,6 +20,7 @@
#include <driver.h>
#include <errno.h>
#include <init.h>
+#include <of.h>
static int platform_probe(struct device_d *dev)
{
diff --git a/drivers/gpio/gpio-imx.c b/drivers/gpio/gpio-imx.c
index 063a81c..a71492a 100644
--- a/drivers/gpio/gpio-imx.c
+++ b/drivers/gpio/gpio-imx.c
@@ -23,6 +23,7 @@
#include <common.h>
#include <errno.h>
#include <io.h>
+#include <of.h>
#include <gpio.h>
#include <init.h>
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index c607bcb..f657c28 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -34,6 +34,7 @@
#include <common.h>
#include <driver.h>
#include <init.h>
+#include <of.h>
#include <malloc.h>
#include <types.h>
#include <xfuncs.h>
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index ccc4844..3b9f601 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -22,6 +22,7 @@
#include <malloc.h>
#include <xfuncs.h>
#include <init.h>
+#include <of.h>
#include <i2c/i2c.h>
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c
index 8da7097..7664e7b 100644
--- a/drivers/mci/imx-esdhc.c
+++ b/drivers/mci/imx-esdhc.c
@@ -24,6 +24,7 @@
#include <common.h>
#include <driver.h>
#include <init.h>
+#include <of.h>
#include <malloc.h>
#include <mci.h>
#include <clock.h>
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index cfae91b..e62569d 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -34,6 +34,7 @@
#include <asm/byteorder.h>
#include <block.h>
#include <disks.h>
+#include <of.h>
#include <linux/err.h>
#define MAX_BUFFER_NUMBER 0xffffffff
diff --git a/drivers/mfd/mc13xxx.c b/drivers/mfd/mc13xxx.c
index cf4c02a..bfbd328 100644
--- a/drivers/mfd/mc13xxx.c
+++ b/drivers/mfd/mc13xxx.c
@@ -21,6 +21,7 @@
#include <xfuncs.h>
#include <errno.h>
#include <malloc.h>
+#include <of.h>
#include <i2c/i2c.h>
#include <spi/spi.h>
diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c
index 3a2db92..c1e7d9e 100644
--- a/drivers/mfd/stmpe-i2c.c
+++ b/drivers/mfd/stmpe-i2c.c
@@ -19,6 +19,7 @@
#include <driver.h>
#include <xfuncs.h>
#include <errno.h>
+#include <of.h>
#include <i2c/i2c.h>
#include <mfd/stmpe-i2c.h>
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
index f63b10e..33f900e 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -25,6 +25,7 @@
#include <ioctl.h>
#include <nand.h>
#include <errno.h>
+#include <of.h>
#include "mtd.h"
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 1e3bc93..9594011 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -17,6 +17,7 @@
#include <common.h>
#include <init.h>
#include <driver.h>
+#include <of.h>
#include <spi/spi.h>
#include <spi/flash.h>
#include <xfuncs.h>
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index d785e33..cdc0120 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -17,6 +17,7 @@
#include <linux/err.h>
#include <errno.h>
#include <io.h>
+#include <of.h>
#include <clock.h>
#include <spi/spi.h>
diff --git a/drivers/pinctrl/imx-iomux-v3.c b/drivers/pinctrl/imx-iomux-v3.c
index 1223c02..7fcbb98 100644
--- a/drivers/pinctrl/imx-iomux-v3.c
+++ b/drivers/pinctrl/imx-iomux-v3.c
@@ -20,6 +20,7 @@
#include <common.h>
#include <init.h>
#include <io.h>
+#include <of.h>
#include <pinctrl.h>
#include <malloc.h>
#include <mach/iomux-v3.h>
diff --git a/drivers/pinctrl/pinctrl.c b/drivers/pinctrl/pinctrl.c
index 7c797d3..7f76d5a 100644
--- a/drivers/pinctrl/pinctrl.c
+++ b/drivers/pinctrl/pinctrl.c
@@ -19,6 +19,8 @@
#include <common.h>
#include <malloc.h>
#include <pinctrl.h>
+#include <errno.h>
+#include <of.h>
static LIST_HEAD(pinctrl_list);
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 01c7cc7..8468fa0 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -20,6 +20,7 @@
#include <malloc.h>
#include <notifier.h>
#include <io.h>
+#include <of.h>
#include <linux/err.h>
#include <linux/clk.h>
diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c
index 1c6b684..c0c2ed7 100644
--- a/drivers/spi/imx_spi.c
+++ b/drivers/spi/imx_spi.c
@@ -20,6 +20,7 @@
#include <spi/spi.h>
#include <xfuncs.h>
#include <io.h>
+#include <of.h>
#include <errno.h>
#include <malloc.h>
#include <gpio.h>
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c
index a0dab70..d8209d1 100644
--- a/drivers/usb/imx/chipidea-imx.c
+++ b/drivers/usb/imx/chipidea-imx.c
@@ -15,6 +15,8 @@
#include <common.h>
#include <init.h>
#include <io.h>
+#include <of.h>
+#include <errno.h>
#include <driver.h>
#include <usb/usb.h>
#include <usb/ehci.h>
diff --git a/drivers/usb/imx/imx-usb-misc.c b/drivers/usb/imx/imx-usb-misc.c
index 68c8c4b..ed44d78 100644
--- a/drivers/usb/imx/imx-usb-misc.c
+++ b/drivers/usb/imx/imx-usb-misc.c
@@ -16,6 +16,8 @@
#include <common.h>
#include <init.h>
#include <io.h>
+#include <of.h>
+#include <errno.h>
#include <usb/chipidea-imx.h>
#include <mach/imx6-regs.h>
#include <mach/iomux-mx6.h>
diff --git a/drivers/usb/imx/imx-usb-phy.c b/drivers/usb/imx/imx-usb-phy.c
index 776bfe5..a573c7f 100644
--- a/drivers/usb/imx/imx-usb-phy.c
+++ b/drivers/usb/imx/imx-usb-phy.c
@@ -15,6 +15,8 @@
#include <common.h>
#include <init.h>
#include <io.h>
+#include <of.h>
+#include <errno.h>
#include <driver.h>
#include <malloc.h>
#include <linux/clk.h>
diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog/imxwd.c
index 78f0f38..f5910ac 100644
--- a/drivers/watchdog/imxwd.c
+++ b/drivers/watchdog/imxwd.c
@@ -15,6 +15,7 @@
#include <common.h>
#include <init.h>
#include <io.h>
+#include <of.h>
#include <errno.h>
#include <malloc.h>
#include <watchdog.h>