Commit b6763d0d authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: rcar: use proper type for timeout

wait_event_timeout returns long, not int.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent efd2c611
...@@ -490,7 +490,8 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap, ...@@ -490,7 +490,8 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap,
struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); struct rcar_i2c_priv *priv = i2c_get_adapdata(adap);
struct device *dev = rcar_i2c_priv_to_dev(priv); struct device *dev = rcar_i2c_priv_to_dev(priv);
unsigned long flags; unsigned long flags;
int i, ret, timeout; int i, ret;
long timeout;
pm_runtime_get_sync(dev); pm_runtime_get_sync(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment