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 | |
parent | 9cb62038e3cbb5d8c92d5898b84f61ad8a5a9acf (diff) | |
download | rockbox-1a519f52ac1b433b4eec6ca816dac8aa9e95de95.tar.gz rockbox-1a519f52ac1b433b4eec6ca816dac8aa9e95de95.zip |
Add missing mutex_init to i2c driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21749 a1c6a512-1295-4272-9138-f99709370657
-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) | |||
88 | { | 88 | { |
89 | int i; | 89 | int i; |
90 | 90 | ||
91 | mutex_init(&i2c_mtx); | ||
92 | |||
91 | #if CONFIG_I2C == I2C_ONDIO | 93 | #if CONFIG_I2C == I2C_ONDIO |
92 | /* make PB6 & PB7 general I/O */ | 94 | /* make PB6 & PB7 general I/O */ |
93 | PBCR2 &= ~0xf000; | 95 | PBCR2 &= ~0xf000; |