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:
parent
6fecd2aaca
commit
b67b2671c2
|
@ -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>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <led.h>
|
||||
#include <fs.h>
|
||||
#include <io.h>
|
||||
#include <of.h>
|
||||
|
||||
#include <spi/spi.h>
|
||||
#include <mfd/mc13xxx.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <init.h>
|
||||
#include <fs.h>
|
||||
#include <io.h>
|
||||
#include <of.h>
|
||||
|
||||
#include <mfd/mc13xxx.h>
|
||||
#include <i2c/i2c.h>
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <io.h>
|
||||
#include <errno.h>
|
||||
#include <sizes.h>
|
||||
#include <init.h>
|
||||
#include <asm/barebox-arm.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <param.h>
|
||||
#include <fcntl.h>
|
||||
#include <malloc.h>
|
||||
|
||||
#include <of.h>
|
||||
#include <io.h>
|
||||
|
||||
#include <mach/iim.h>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <of.h>
|
||||
#include <init.h>
|
||||
#include <mach/revision.h>
|
||||
#include <mach/generic.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define __MACH_BBU_H
|
||||
|
||||
#include <bbu.h>
|
||||
#include <errno.h>
|
||||
|
||||
struct imx_dcd_entry;
|
||||
struct imx_dcd_v2_entry;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <io.h>
|
||||
#include <of.h>
|
||||
|
||||
/*
|
||||
* a single MAC address reference has the form
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <complete.h>
|
||||
#include <driver.h>
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
|
||||
static int do_detect(int argc, char *argv[])
|
||||
{
|
||||
|
|
|
@ -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[])
|
||||
{
|
||||
|
|
|
@ -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[])
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <common.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define DISP_LINE_LEN 16
|
||||
|
||||
|
|
|
@ -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[] = {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <magicvar.h>
|
||||
#include <globalvar.h>
|
||||
#include <environment.h>
|
||||
#include <of.h>
|
||||
|
||||
int errno;
|
||||
EXPORT_SYMBOL(errno);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <common.h>
|
||||
#include <driver.h>
|
||||
#include <errno.h>
|
||||
#include <of.h>
|
||||
|
||||
LIST_HEAD(bus_list);
|
||||
EXPORT_SYMBOL(bus_list);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <driver.h>
|
||||
#include <errno.h>
|
||||
#include <init.h>
|
||||
#include <of.h>
|
||||
|
||||
static int platform_probe(struct device_d *dev)
|
||||
{
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <common.h>
|
||||
#include <errno.h>
|
||||
#include <io.h>
|
||||
#include <of.h>
|
||||
#include <gpio.h>
|
||||
#include <init.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <malloc.h>
|
||||
#include <xfuncs.h>
|
||||
#include <init.h>
|
||||
#include <of.h>
|
||||
|
||||
#include <i2c/i2c.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <xfuncs.h>
|
||||
#include <errno.h>
|
||||
#include <malloc.h>
|
||||
#include <of.h>
|
||||
|
||||
#include <i2c/i2c.h>
|
||||
#include <spi/spi.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <ioctl.h>
|
||||
#include <nand.h>
|
||||
#include <errno.h>
|
||||
#include <of.h>
|
||||
|
||||
#include "mtd.h"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/err.h>
|
||||
#include <errno.h>
|
||||
#include <io.h>
|
||||
#include <of.h>
|
||||
#include <clock.h>
|
||||
|
||||
#include <spi/spi.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include <common.h>
|
||||
#include <malloc.h>
|
||||
#include <pinctrl.h>
|
||||
#include <errno.h>
|
||||
#include <of.h>
|
||||
|
||||
static LIST_HEAD(pinctrl_list);
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <malloc.h>
|
||||
#include <notifier.h>
|
||||
#include <io.h>
|
||||
#include <of.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/clk.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <common.h>
|
||||
#include <errno.h>
|
||||
#include <libbb.h>
|
||||
#include <fs.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue