diff options
Diffstat (limited to 'firmware/target/arm/i2c-pp.c')
-rw-r--r-- | firmware/target/arm/i2c-pp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/target/arm/i2c-pp.c b/firmware/target/arm/i2c-pp.c index b8e3869907..092a59be84 100644 --- a/firmware/target/arm/i2c-pp.c +++ b/firmware/target/arm/i2c-pp.c | |||
@@ -187,6 +187,7 @@ int pp_i2c_send(unsigned int addr, int data0, int data1) | |||
187 | void i2c_init(void) | 187 | void i2c_init(void) |
188 | { | 188 | { |
189 | /* From ipodlinux */ | 189 | /* From ipodlinux */ |
190 | mutex_init(&i2c_mtx); | ||
190 | 191 | ||
191 | #ifdef IPOD_MINI | 192 | #ifdef IPOD_MINI |
192 | /* GPIO port C disable port 0x10 */ | 193 | /* GPIO port C disable port 0x10 */ |
@@ -231,7 +232,5 @@ void i2c_init(void) | |||
231 | #endif | 232 | #endif |
232 | #endif | 233 | #endif |
233 | 234 | ||
234 | mutex_init(&i2c_mtx); | ||
235 | |||
236 | i2c_readbyte(0x8, 0); | 235 | i2c_readbyte(0x8, 0); |
237 | } | 236 | } |