diff options
author | Cyril Bur <cyrilbur@gmail.com> | 2016-01-21 03:30:26 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2016-02-02 05:58:17 +0300 |
commit | 5acfe3559a30ae7400c90f0d9da4113cd4723570 (patch) | |
tree | d13c556fd9fa58a5b431faf7899c5cbea55e2557 | |
parent | c43c31d0e4279664e9e04befd5c0191e0d2fb5a9 (diff) | |
download | linux-openbmc-20160202-2.tar.xz |
i2c: aspeed spin_lock_init() on cmd_lockopenbmc-20160202-2
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | drivers/i2c/busses/i2c-aspeed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c index 3b858d395f92..e4bf88a32ec5 100644 --- a/drivers/i2c/busses/i2c-aspeed.c +++ b/drivers/i2c/busses/i2c-aspeed.c @@ -721,6 +721,7 @@ static int ast_i2c_probe_bus(struct platform_device *pdev) } /* Initialize the I2C adapter */ + spin_lock_init(&bus->cmd_lock); bus->adap.nr = bus_num; bus->adap.owner = THIS_MODULE; bus->adap.retries = 0; |