Skip to content

Commit

Permalink
i2c: aspeed spin_lock_init() on cmd_lock
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Stanley <[email protected]>
  • Loading branch information
cyrilbur-ibm authored and shenki committed Feb 2, 2016
1 parent c43c31d commit 5acfe35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5acfe35

Please sign in to comment.