diff options
-rw-r--r-- | drivers/i2c/busses/i2c-st.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c index ea72dca32fdf..2c3ad8eea1d5 100644 --- a/drivers/i2c/busses/i2c-st.c +++ b/drivers/i2c/busses/i2c-st.c | |||
@@ -708,8 +708,7 @@ static int st_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
708 | #ifdef CONFIG_PM_SLEEP | 708 | #ifdef CONFIG_PM_SLEEP |
709 | static int st_i2c_suspend(struct device *dev) | 709 | static int st_i2c_suspend(struct device *dev) |
710 | { | 710 | { |
711 | struct platform_device *pdev = | 711 | struct platform_device *pdev = to_platform_device(dev); |
712 | container_of(dev, struct platform_device, dev); | ||
713 | struct st_i2c_dev *i2c_dev = platform_get_drvdata(pdev); | 712 | struct st_i2c_dev *i2c_dev = platform_get_drvdata(pdev); |
714 | 713 | ||
715 | if (i2c_dev->busy) | 714 | if (i2c_dev->busy) |