9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2013-07-10 09:27:06 +02:00
parent 6fecd2aaca
commit b67b2671c2
53 changed files with 57 additions and 2 deletions

View File

@ -27,6 +27,7 @@
#include <init.h>
#include <gpio.h>
#include <fec.h>
#include <of.h>
#include <linux/micrel_phy.h>
#include <mfd/stmpe-i2c.h>

View File

@ -23,6 +23,7 @@
#include <led.h>
#include <fs.h>
#include <io.h>
#include <of.h>
#include <spi/spi.h>
#include <mfd/mc13xxx.h>

View File

@ -24,6 +24,7 @@
#include <generated/mach-types.h>
#include <partition.h>
#include <fs.h>
#include <of.h>
#include <fcntl.h>
#include <mach/bbu.h>
#include <nand.h>

View File

@ -22,6 +22,7 @@
#include <init.h>
#include <fs.h>
#include <io.h>
#include <of.h>
#include <mfd/mc13xxx.h>
#include <i2c/i2c.h>

View File

@ -25,6 +25,7 @@
#include <mach/imx6.h>
#include <mfd/imx6q-iomuxc-gpr.h>
#include <sizes.h>
#include <of.h>
#define GK802_GPIO_RECOVERY_BTN IMX_GPIO_NR(3, 16) /* recovery button */
#define GK802_GPIO_RTL8192_PDN IMX_GPIO_NR(2, 0) /* RTL8192CU powerdown */

View File

@ -27,6 +27,7 @@
#include <init.h>
#include <gpio.h>
#include <fec.h>
#include <of.h>
#include <linux/micrel_phy.h>
#include <mfd/stmpe-i2c.h>

View File

@ -20,6 +20,7 @@
#include <common.h>
#include <init.h>
#include <sizes.h>
#include <of.h>
#include <asm/barebox-arm.h>
#include <asm/barebox-arm-head.h>
#include <asm-generic/memory_layout.h>

View File

@ -11,6 +11,7 @@
#include <driver.h>
#include <linux/clk.h>
#include <io.h>
#include <of.h>
#include <linux/clkdev.h>
#include <linux/err.h>
#include <mach/imx51-regs.h>

View File

@ -15,6 +15,7 @@
#include <driver.h>
#include <linux/clk.h>
#include <io.h>
#include <of.h>
#include <linux/clkdev.h>
#include <linux/err.h>
#include <mach/imx6-regs.h>

View File

@ -29,6 +29,7 @@
#include <init.h>
#include <clock.h>
#include <errno.h>
#include <of.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <notifier.h>

View File

@ -18,6 +18,7 @@
#include <common.h>
#include <io.h>
#include <errno.h>
#include <sizes.h>
#include <init.h>
#include <asm/barebox-arm.h>

View File

@ -24,7 +24,7 @@
#include <param.h>
#include <fcntl.h>
#include <malloc.h>
#include <of.h>
#include <io.h>
#include <mach/iim.h>

View File

@ -12,6 +12,7 @@
*/
#include <common.h>
#include <of.h>
#include <init.h>
#include <mach/revision.h>
#include <mach/generic.h>

View File

@ -2,6 +2,7 @@
#define __MACH_BBU_H
#include <bbu.h>
#include <errno.h>
struct imx_dcd_entry;
struct imx_dcd_v2_entry;

View File

@ -24,6 +24,7 @@
#include <init.h>
#include <net.h>
#include <io.h>
#include <of.h>
/*
* a single MAC address reference has the form

View File

@ -21,6 +21,7 @@
#include <complete.h>
#include <driver.h>
#include <getopt.h>
#include <errno.h>
static int do_detect(int argc, char *argv[])
{

View File

@ -12,7 +12,7 @@
#include <magicvar.h>
#include <getopt.h>
#include <linux/stat.h>
#include <fs.h>
#include <errno.h>
static int do_filetype(int argc, char *argv[])
{

View File

@ -24,6 +24,7 @@
#include <getopt.h>
#include <command.h>
#include <envfs.h>
#include <errno.h>
#include <fs.h>
static int do_loadenv(int argc, char *argv[])

View File

@ -25,6 +25,7 @@
#include <console.h>
#include <driver.h>
#include <fs.h>
#include <of.h>
#include <init.h>
#include <clock.h>
#include <kfifo.h>

View File

@ -1,6 +1,7 @@
#include <common.h>
#include <malloc.h>
#include <globalvar.h>
#include <errno.h>
#include <init.h>
#include <environment.h>
#include <magicvar.h>

View File

@ -1,4 +1,5 @@
#include <common.h>
#include <errno.h>
#define DISP_LINE_LEN 16

View File

@ -25,6 +25,7 @@
#include <memory.h>
#include <types.h>
#include <sizes.h>
#include <errno.h>
#include <memtest.h>
static const resource_size_t bitpattern[] = {

View File

@ -22,6 +22,7 @@
#include <magicvar.h>
#include <globalvar.h>
#include <environment.h>
#include <of.h>
int errno;
EXPORT_SYMBOL(errno);

View File

@ -35,6 +35,7 @@
#include <malloc.h>
#include <debug_ll.h>
#include <fs.h>
#include <errno.h>
#include <linux/stat.h>
#include <envfs.h>
#include <asm/sections.h>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <driver.h>
#include <errno.h>
#include <of.h>
LIST_HEAD(bus_list);
EXPORT_SYMBOL(bus_list);

View File

@ -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>

View File

@ -20,6 +20,7 @@
#include <driver.h>
#include <errno.h>
#include <init.h>
#include <of.h>
static int platform_probe(struct device_d *dev)
{

View File

@ -23,6 +23,7 @@
#include <common.h>
#include <errno.h>
#include <io.h>
#include <of.h>
#include <gpio.h>
#include <init.h>

View File

@ -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>

View File

@ -22,6 +22,7 @@
#include <malloc.h>
#include <xfuncs.h>
#include <init.h>
#include <of.h>
#include <i2c/i2c.h>

View File

@ -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>

View File

@ -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

View File

@ -21,6 +21,7 @@
#include <xfuncs.h>
#include <errno.h>
#include <malloc.h>
#include <of.h>
#include <i2c/i2c.h>
#include <spi/spi.h>

View File

@ -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>

View File

@ -25,6 +25,7 @@
#include <ioctl.h>
#include <nand.h>
#include <errno.h>
#include <of.h>
#include "mtd.h"

View File

@ -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>

View File

@ -17,6 +17,7 @@
#include <linux/err.h>
#include <errno.h>
#include <io.h>
#include <of.h>
#include <clock.h>
#include <spi/spi.h>

View File

@ -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>

View File

@ -19,6 +19,8 @@
#include <common.h>
#include <malloc.h>
#include <pinctrl.h>
#include <errno.h>
#include <of.h>
static LIST_HEAD(pinctrl_list);

View File

@ -20,6 +20,7 @@
#include <malloc.h>
#include <notifier.h>
#include <io.h>
#include <of.h>
#include <linux/err.h>
#include <linux/clk.h>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -12,6 +12,7 @@
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#include <driver.h>
#include <errno.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/mtd/mtd-abi.h>

View File

@ -118,6 +118,7 @@
#include <linux/ctype.h>
#include <linux/string.h>
#include <libbb.h>
#include <errno.h>
#include <math.h>
#define lookupvar (math_state->lookupvar)

View File

@ -1,4 +1,5 @@
#include <common.h>
#include <errno.h>
#include <libbb.h>
#include <fs.h>

View File

@ -23,6 +23,7 @@
#include <driver.h>
#include <init.h>
#include <net.h>
#include <of.h>
#include <linux/phy.h>
#include <errno.h>
#include <malloc.h>