]> git.sur5r.net Git - u-boot/commitdiff
Make onenand_uboot.h self-sufficient.
authorScott Wood <scottwood@freescale.com>
Thu, 22 May 2008 15:49:00 +0000 (10:49 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 28 May 2008 16:06:28 +0000 (11:06 -0500)
Don't assume types are provided by previously included headers.

Signed-off-by: Scott Wood <scottwood@freescale.com>
include/onenand_uboot.h

index bd1831ea6d651a3a2c58f9314b84fa1e44cddeec..4449f987bf7ffb22adf79208b2b9b31866a3041e 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef __UBOOT_ONENAND_H
 #define __UBOOT_ONENAND_H
 
+#include <linux/types.h>
+
 struct kvec {
        void *iov_base;
        size_t iov_len;
@@ -22,6 +24,9 @@ struct kvec {
 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,