summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700/ipodnano2g
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/ipodnano2g')
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c
index 8a4541a226..9261e5b3a0 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c
@@ -94,9 +94,9 @@ static long nand_last_activity_value = -1;
94static long nand_stack[DEFAULT_STACK_SIZE]; 94static long nand_stack[DEFAULT_STACK_SIZE];
95 95
96static struct mutex nand_mtx; 96static struct mutex nand_mtx;
97static struct wakeup nand_wakeup; 97static struct semaphore nand_complete;
98static struct mutex ecc_mtx; 98static struct mutex ecc_mtx;
99static struct wakeup ecc_wakeup; 99static struct semaphore ecc_complete;
100 100
101static uint8_t nand_data[0x800] STORAGE_ALIGN_ATTR; 101static uint8_t nand_data[0x800] STORAGE_ALIGN_ATTR;
102static uint8_t nand_ctrl[0x200] STORAGE_ALIGN_ATTR; 102static uint8_t nand_ctrl[0x200] STORAGE_ALIGN_ATTR;
@@ -731,9 +731,9 @@ static void nand_thread(void)
731int nand_device_init(void) 731int nand_device_init(void)
732{ 732{
733 mutex_init(&nand_mtx); 733 mutex_init(&nand_mtx);
734 wakeup_init(&nand_wakeup); 734 semaphore_init(&nand_complete, 1, 0);
735 mutex_init(&ecc_mtx); 735 mutex_init(&ecc_mtx);
736 wakeup_init(&ecc_wakeup); 736 semaphore_init(&ecc_complete, 1, 0);
737 737
738 uint32_t type; 738 uint32_t type;
739 uint32_t i, j; 739 uint32_t i, j;