diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-10 17:46:35 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-10 17:46:35 +0000 |
commit | 1a519f52ac1b433b4eec6ca816dac8aa9e95de95 (patch) | |
tree | 63a4165054a89f48230b10ab6f575a1ad3c19626 /firmware/drivers/i2c.c | |
parent | 9cb62038e3cbb5d8c92d5898b84f61ad8a5a9acf (diff) |
Add missing mutex_init to i2c driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21749 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/i2c.c')
-rw-r--r-- | firmware/drivers/i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/i2c.c b/firmware/drivers/i2c.c index f919257c49..8cc7c78a2d 100644 --- a/firmware/drivers/i2c.c +++ b/firmware/drivers/i2c.c @@ -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; |