Add missing mutex_init to i2c driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21749 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9cb62038e3
commit
1a519f52ac
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ void i2c_init(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
mutex_init(&i2c_mtx);
|
||||
|
||||
#if CONFIG_I2C == I2C_ONDIO
|
||||
/* make PB6 & PB7 general I/O */
|
||||
PBCR2 &= ~0xf000;
|
||||
|
|
Loading…
Reference in a new issue