diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-08-21 06:08:14 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-08-21 06:08:14 -0400 |
commit | 828fa1e60117535d9b1e1b09444842ae66e8424d (patch) | |
tree | 281f5bff9a12c760ca947a98569df63c8ca85909 /drivers/mfd/htc-i2cpld.c | |
parent | 09fd86780bb4603df1886e17127f5beb97f70ffb (diff) | |
parent | 8a105ca202b1a1061a24f1e980206cd2808e2f8b (diff) |
Merge tag 'mfd-lee-3.12-1' of git://git.linaro.org/people/ljones/mfd
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/htc-i2cpld.c')
-rw-r--r-- | drivers/mfd/htc-i2cpld.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c index c9dfce6ae0c2..d7b2a75aca3e 100644 --- a/drivers/mfd/htc-i2cpld.c +++ b/drivers/mfd/htc-i2cpld.c | |||
@@ -340,7 +340,7 @@ static int htcpld_setup_chip_irq( | |||
340 | int ret = 0; | 340 | int ret = 0; |
341 | 341 | ||
342 | /* Get the platform and driver data */ | 342 | /* Get the platform and driver data */ |
343 | pdata = dev->platform_data; | 343 | pdata = dev_get_platdata(dev); |
344 | htcpld = platform_get_drvdata(pdev); | 344 | htcpld = platform_get_drvdata(pdev); |
345 | chip = &htcpld->chip[chip_index]; | 345 | chip = &htcpld->chip[chip_index]; |
346 | plat_chip_data = &pdata->chip[chip_index]; | 346 | plat_chip_data = &pdata->chip[chip_index]; |
@@ -375,7 +375,7 @@ static int htcpld_register_chip_i2c( | |||
375 | struct i2c_board_info info; | 375 | struct i2c_board_info info; |
376 | 376 | ||
377 | /* Get the platform and driver data */ | 377 | /* Get the platform and driver data */ |
378 | pdata = dev->platform_data; | 378 | pdata = dev_get_platdata(dev); |
379 | htcpld = platform_get_drvdata(pdev); | 379 | htcpld = platform_get_drvdata(pdev); |
380 | chip = &htcpld->chip[chip_index]; | 380 | chip = &htcpld->chip[chip_index]; |
381 | plat_chip_data = &pdata->chip[chip_index]; | 381 | plat_chip_data = &pdata->chip[chip_index]; |
@@ -447,7 +447,7 @@ static int htcpld_register_chip_gpio( | |||
447 | int ret = 0; | 447 | int ret = 0; |
448 | 448 | ||
449 | /* Get the platform and driver data */ | 449 | /* Get the platform and driver data */ |
450 | pdata = dev->platform_data; | 450 | pdata = dev_get_platdata(dev); |
451 | htcpld = platform_get_drvdata(pdev); | 451 | htcpld = platform_get_drvdata(pdev); |
452 | chip = &htcpld->chip[chip_index]; | 452 | chip = &htcpld->chip[chip_index]; |
453 | plat_chip_data = &pdata->chip[chip_index]; | 453 | plat_chip_data = &pdata->chip[chip_index]; |
@@ -509,7 +509,7 @@ static int htcpld_setup_chips(struct platform_device *pdev) | |||
509 | int i; | 509 | int i; |
510 | 510 | ||
511 | /* Get the platform and driver data */ | 511 | /* Get the platform and driver data */ |
512 | pdata = dev->platform_data; | 512 | pdata = dev_get_platdata(dev); |
513 | htcpld = platform_get_drvdata(pdev); | 513 | htcpld = platform_get_drvdata(pdev); |
514 | 514 | ||
515 | /* Setup each chip's output GPIOs */ | 515 | /* Setup each chip's output GPIOs */ |
@@ -574,7 +574,7 @@ static int htcpld_core_probe(struct platform_device *pdev) | |||
574 | if (!dev) | 574 | if (!dev) |
575 | return -ENODEV; | 575 | return -ENODEV; |
576 | 576 | ||
577 | pdata = dev->platform_data; | 577 | pdata = dev_get_platdata(dev); |
578 | if (!pdata) { | 578 | if (!pdata) { |
579 | dev_warn(dev, "Platform data not found for htcpld core!\n"); | 579 | dev_warn(dev, "Platform data not found for htcpld core!\n"); |
580 | return -ENXIO; | 580 | return -ENXIO; |