Don't assume types are provided by previously included headers.
Signed-off-by: Scott Wood <scottwood@freescale.com>
#ifndef __UBOOT_ONENAND_H
#define __UBOOT_ONENAND_H
#ifndef __UBOOT_ONENAND_H
#define __UBOOT_ONENAND_H
+#include <linux/types.h>
+
struct kvec {
void *iov_base;
size_t iov_len;
struct kvec {
void *iov_base;
size_t iov_len;
typedef int spinlock_t;
typedef int wait_queue_head_t;
typedef int spinlock_t;
typedef int wait_queue_head_t;
+struct mtd_info;
+struct erase_info;
+
/* Functions */
extern void onenand_init(void);
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
/* Functions */
extern void onenand_init(void);
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,