aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/htc-i2cpld.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
index d7b2a75aca3e..b44f0203983b 100644
--- a/drivers/mfd/htc-i2cpld.c
+++ b/drivers/mfd/htc-i2cpld.c
@@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
332 int chip_index) 332 int chip_index)
333{ 333{
334 struct htcpld_data *htcpld; 334 struct htcpld_data *htcpld;
335 struct device *dev = &pdev->dev;
336 struct htcpld_core_platform_data *pdata;
337 struct htcpld_chip *chip; 335 struct htcpld_chip *chip;
338 struct htcpld_chip_platform_data *plat_chip_data;
339 unsigned int irq, irq_end; 336 unsigned int irq, irq_end;
340 int ret = 0; 337 int ret = 0;
341 338
342 /* Get the platform and driver data */ 339 /* Get the platform and driver data */
343 pdata = dev_get_platdata(dev);
344 htcpld = platform_get_drvdata(pdev); 340 htcpld = platform_get_drvdata(pdev);
345 chip = &htcpld->chip[chip_index]; 341 chip = &htcpld->chip[chip_index];
346 plat_chip_data = &pdata->chip[chip_index];
347 342
348 /* Setup irq handlers */ 343 /* Setup irq handlers */
349 irq_end = chip->irq_start + chip->nirqs; 344 irq_end = chip->irq_start + chip->nirqs;