diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-nand-x1000.c')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/spl-nand-x1000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c b/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c index 82a05abf75..24eb42081e 100644 --- a/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c +++ b/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "gpio-x1000.h" | 23 | #include "gpio-x1000.h" |
24 | #include "nand-x1000.h" | 24 | #include "nand-x1000.h" |
25 | 25 | ||
26 | static nand_drv* ndrv = NULL; | 26 | static struct nand_drv* ndrv = NULL; |
27 | 27 | ||
28 | int spl_storage_open(void) | 28 | int spl_storage_open(void) |
29 | { | 29 | { |
@@ -31,7 +31,7 @@ int spl_storage_open(void) | |||
31 | gpioz_configure(GPIO_A, 0x3f << 26, GPIOF_DEVICE(1)); | 31 | gpioz_configure(GPIO_A, 0x3f << 26, GPIOF_DEVICE(1)); |
32 | 32 | ||
33 | /* Allocate NAND driver manually in DRAM */ | 33 | /* Allocate NAND driver manually in DRAM */ |
34 | ndrv = spl_alloc(sizeof(nand_drv)); | 34 | ndrv = spl_alloc(sizeof(struct nand_drv)); |
35 | ndrv->page_buf = spl_alloc(NAND_DRV_MAXPAGESIZE); | 35 | ndrv->page_buf = spl_alloc(NAND_DRV_MAXPAGESIZE); |
36 | ndrv->scratch_buf = spl_alloc(NAND_DRV_SCRATCHSIZE); | 36 | ndrv->scratch_buf = spl_alloc(NAND_DRV_SCRATCHSIZE); |
37 | ndrv->refcount = 0; | 37 | ndrv->refcount = 0; |