aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-s6000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-s6000.c')
-rw-r--r--drivers/i2c/busses/i2c-s6000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-s6000.c b/drivers/i2c/busses/i2c-s6000.c
index 7c1ca5aca088..dd186a037684 100644
--- a/drivers/i2c/busses/i2c-s6000.c
+++ b/drivers/i2c/busses/i2c-s6000.c
@@ -290,8 +290,9 @@ static int s6i2c_probe(struct platform_device *dev)
290 290
291 clock = 0; 291 clock = 0;
292 bus_num = -1; 292 bus_num = -1;
293 if (dev->dev.platform_data) { 293 if (dev_get_platdata(&dev->dev)) {
294 struct s6_i2c_platform_data *pdata = dev->dev.platform_data; 294 struct s6_i2c_platform_data *pdata =
295 dev_get_platdata(&dev->dev);
295 bus_num = pdata->bus_num; 296 bus_num = pdata->bus_num;
296 clock = pdata->clock; 297 clock = pdata->clock;
297 } 298 }