mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Merge tag 'mfd-for-linus-3.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
Pull mfd fixes from Samuel Ortiz:
"This is the remaining MFD fixes for 3.6, with 5 pending fixes:
- A tps65217 build error fix.
- A lcp_ich regression fix caused by the MFD driver failing to
initialize the watchdog sub device due to ACPI conflicts.
- 2 MAX77693 interrupt handling bug fixes.
- An MFD core fix, adding an IRQ domain argument to the MFD device
addition API in order to prevent silent and potentially harmful
remapping behaviour changes for drivers supporting non-DT
platforms."
* tag 'mfd-for-linus-3.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
mfd: MAX77693: Fix NULL pointer error when initializing irqs
mfd: MAX77693: Fix interrupt handling bug
mfd: core: Push irqdomain mapping out into devices
mfd: lpc_ich: Fix a 3.5 kernel regression for iTCO_wdt driver
mfd: Move tps65217 regulator plat data handling to regulator
This commit is contained in:
commit
73f8be297e
58 files changed
+343
-247
No files matched your search
@@ -669,13 +669,18 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
|
||||
}
|
||||
info->dev = &pdev->dev;
|
||||
info->max77693 = max77693;
|
||||
info->max77693->regmap_muic = regmap_init_i2c(info->max77693->muic,
|
||||
&max77693_muic_regmap_config);
|
||||
if (IS_ERR(info->max77693->regmap_muic)) {
|
||||
ret = PTR_ERR(info->max77693->regmap_muic);
|
||||
dev_err(max77693->dev,
|
||||
"failed to allocate register map: %d\n", ret);
|
||||
goto err_regmap;
|
||||
if (info->max77693->regmap_muic)
|
||||
dev_dbg(&pdev->dev, "allocate register map\n");
|
||||
else {
|
||||
info->max77693->regmap_muic = devm_regmap_init_i2c(
|
||||
info->max77693->muic,
|
||||
&max77693_muic_regmap_config);
|
||||
if (IS_ERR(info->max77693->regmap_muic)) {
|
||||
ret = PTR_ERR(info->max77693->regmap_muic);
|
||||
dev_err(max77693->dev,
|
||||
"failed to allocate register map: %d\n", ret);
|
||||
goto err_regmap;
|
||||
}
|
||||
}
|
||||
platform_set_drvdata(pdev, info);
|
||||
mutex_init(&info->mutex);
|
||||
|
||||
@@ -470,7 +470,8 @@ static int __devinit device_800_init(struct pm80x_chip *chip,
|
||||
|
||||
ret =
|
||||
mfd_add_devices(chip->dev, 0, &onkey_devs[0],
|
||||
ARRAY_SIZE(onkey_devs), &onkey_resources[0], 0);
|
||||
ARRAY_SIZE(onkey_devs), &onkey_resources[0], 0,
|
||||
NULL);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev, "Failed to add onkey subdev\n");
|
||||
goto out_dev;
|
||||
@@ -481,7 +482,7 @@ static int __devinit device_800_init(struct pm80x_chip *chip,
|
||||
rtc_devs[0].platform_data = pdata->rtc;
|
||||
rtc_devs[0].pdata_size = sizeof(struct pm80x_rtc_pdata);
|
||||
ret = mfd_add_devices(chip->dev, 0, &rtc_devs[0],
|
||||
ARRAY_SIZE(rtc_devs), NULL, 0);
|
||||
ARRAY_SIZE(rtc_devs), NULL, 0, NULL);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev, "Failed to add rtc subdev\n");
|
||||
goto out_dev;
|
||||
|
||||
@@ -216,7 +216,8 @@ static int __devinit device_805_init(struct pm80x_chip *chip)
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(chip->dev, 0, &codec_devs[0],
|
||||
ARRAY_SIZE(codec_devs), &codec_resources[0], 0);
|
||||
ARRAY_SIZE(codec_devs), &codec_resources[0], 0,
|
||||
NULL);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev, "Failed to add codec subdev\n");
|
||||
goto out_codec;
|
||||
|
||||
+11
-10
@@ -637,7 +637,7 @@ static void __devinit device_bk_init(struct pm860x_chip *chip,
|
||||
bk_devs[i].resources = &bk_resources[j];
|
||||
ret = mfd_add_devices(chip->dev, 0,
|
||||
&bk_devs[i], 1,
|
||||
&bk_resources[j], 0);
|
||||
&bk_resources[j], 0, NULL);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev, "Failed to add "
|
||||
"backlight subdev\n");
|
||||
@@ -672,7 +672,7 @@ static void __devinit device_led_init(struct pm860x_chip *chip,
|
||||
led_devs[i].resources = &led_resources[j],
|
||||
ret = mfd_add_devices(chip->dev, 0,
|
||||
&led_devs[i], 1,
|
||||
&led_resources[j], 0);
|
||||
&led_resources[j], 0, NULL);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev, "Failed to add "
|
||||
"led subdev\n");
|
||||
@@ -709,7 +709,7 @@ static void __devinit device_regulator_init(struct pm860x_chip *chip,
|
||||
regulator_devs[i].resources = ®ulator_resources[seq];
|
||||
|
||||
ret = mfd_add_devices(chip->dev, 0, ®ulator_devs[i], 1,
|
||||
®ulator_resources[seq], 0);
|
||||
®ulator_resources[seq], 0, NULL);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev, "Failed to add regulator subdev\n");
|
||||
goto out;
|
||||
@@ -733,7 +733,7 @@ static void __devinit device_rtc_init(struct pm860x_chip *chip,
|
||||
rtc_devs[0].resources = &rtc_resources[0];
|
||||
ret = mfd_add_devices(chip->dev, 0, &rtc_devs[0],
|
||||
ARRAY_SIZE(rtc_devs), &rtc_resources[0],
|
||||
chip->irq_base);
|
||||
chip->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add rtc subdev\n");
|
||||
}
|
||||
@@ -752,7 +752,7 @@ static void __devinit device_touch_init(struct pm860x_chip *chip,
|
||||
touch_devs[0].resources = &touch_resources[0];
|
||||
ret = mfd_add_devices(chip->dev, 0, &touch_devs[0],
|
||||
ARRAY_SIZE(touch_devs), &touch_resources[0],
|
||||
chip->irq_base);
|
||||
chip->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add touch subdev\n");
|
||||
}
|
||||
@@ -770,7 +770,7 @@ static void __devinit device_power_init(struct pm860x_chip *chip,
|
||||
power_devs[0].num_resources = ARRAY_SIZE(battery_resources);
|
||||
power_devs[0].resources = &battery_resources[0],
|
||||
ret = mfd_add_devices(chip->dev, 0, &power_devs[0], 1,
|
||||
&battery_resources[0], chip->irq_base);
|
||||
&battery_resources[0], chip->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add battery subdev\n");
|
||||
|
||||
@@ -779,7 +779,7 @@ static void __devinit device_power_init(struct pm860x_chip *chip,
|
||||
power_devs[1].num_resources = ARRAY_SIZE(charger_resources);
|
||||
power_devs[1].resources = &charger_resources[0],
|
||||
ret = mfd_add_devices(chip->dev, 0, &power_devs[1], 1,
|
||||
&charger_resources[0], chip->irq_base);
|
||||
&charger_resources[0], chip->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add charger subdev\n");
|
||||
|
||||
@@ -788,7 +788,7 @@ static void __devinit device_power_init(struct pm860x_chip *chip,
|
||||
power_devs[2].num_resources = ARRAY_SIZE(preg_resources);
|
||||
power_devs[2].resources = &preg_resources[0],
|
||||
ret = mfd_add_devices(chip->dev, 0, &power_devs[2], 1,
|
||||
&preg_resources[0], chip->irq_base);
|
||||
&preg_resources[0], chip->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add preg subdev\n");
|
||||
}
|
||||
@@ -802,7 +802,7 @@ static void __devinit device_onkey_init(struct pm860x_chip *chip,
|
||||
onkey_devs[0].resources = &onkey_resources[0],
|
||||
ret = mfd_add_devices(chip->dev, 0, &onkey_devs[0],
|
||||
ARRAY_SIZE(onkey_devs), &onkey_resources[0],
|
||||
chip->irq_base);
|
||||
chip->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add onkey subdev\n");
|
||||
}
|
||||
@@ -815,7 +815,8 @@ static void __devinit device_codec_init(struct pm860x_chip *chip,
|
||||
codec_devs[0].num_resources = ARRAY_SIZE(codec_resources);
|
||||
codec_devs[0].resources = &codec_resources[0],
|
||||
ret = mfd_add_devices(chip->dev, 0, &codec_devs[0],
|
||||
ARRAY_SIZE(codec_devs), &codec_resources[0], 0);
|
||||
ARRAY_SIZE(codec_devs), &codec_resources[0], 0,
|
||||
NULL);
|
||||
if (ret < 0)
|
||||
dev_err(chip->dev, "Failed to add codec subdev\n");
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ static int aat2870_i2c_probe(struct i2c_client *client,
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(aat2870->dev, 0, aat2870_devs,
|
||||
ARRAY_SIZE(aat2870_devs), NULL, 0);
|
||||
ARRAY_SIZE(aat2870_devs), NULL, 0, NULL);
|
||||
if (ret != 0) {
|
||||
dev_err(aat2870->dev, "Failed to add subdev: %d\n", ret);
|
||||
goto out_disable;
|
||||
|
||||
@@ -946,7 +946,7 @@ static int __devinit ab3100_probe(struct i2c_client *client,
|
||||
}
|
||||
|
||||
err = mfd_add_devices(&client->dev, 0, ab3100_devs,
|
||||
ARRAY_SIZE(ab3100_devs), NULL, 0);
|
||||
ARRAY_SIZE(ab3100_devs), NULL, 0, NULL);
|
||||
|
||||
ab3100_setup_debugfs(ab3100);
|
||||
|
||||
|
||||
@@ -1418,25 +1418,25 @@ static int __devinit ab8500_probe(struct platform_device *pdev)
|
||||
|
||||
ret = mfd_add_devices(ab8500->dev, 0, abx500_common_devs,
|
||||
ARRAY_SIZE(abx500_common_devs), NULL,
|
||||
ab8500->irq_base);
|
||||
ab8500->irq_base, ab8500->domain);
|
||||
if (ret)
|
||||
goto out_freeirq;
|
||||
|
||||
if (is_ab9540(ab8500))
|
||||
ret = mfd_add_devices(ab8500->dev, 0, ab9540_devs,
|
||||
ARRAY_SIZE(ab9540_devs), NULL,
|
||||
ab8500->irq_base);
|
||||
ab8500->irq_base, ab8500->domain);
|
||||
else
|
||||
ret = mfd_add_devices(ab8500->dev, 0, ab8500_devs,
|
||||
ARRAY_SIZE(ab8500_devs), NULL,
|
||||
ab8500->irq_base);
|
||||
ab8500->irq_base, ab8500->domain);
|
||||
if (ret)
|
||||
goto out_freeirq;
|
||||
|
||||
if (is_ab9540(ab8500) || is_ab8505(ab8500))
|
||||
ret = mfd_add_devices(ab8500->dev, 0, ab9540_ab8505_devs,
|
||||
ARRAY_SIZE(ab9540_ab8505_devs), NULL,
|
||||
ab8500->irq_base);
|
||||
ab8500->irq_base, ab8500->domain);
|
||||
if (ret)
|
||||
goto out_freeirq;
|
||||
|
||||
@@ -1444,7 +1444,7 @@ static int __devinit ab8500_probe(struct platform_device *pdev)
|
||||
/* Add battery management devices */
|
||||
ret = mfd_add_devices(ab8500->dev, 0, ab8500_bm_devs,
|
||||
ARRAY_SIZE(ab8500_bm_devs), NULL,
|
||||
ab8500->irq_base);
|
||||
ab8500->irq_base, ab8500->domain);
|
||||
if (ret)
|
||||
dev_err(ab8500->dev, "error adding bm devices\n");
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ int __devinit arizona_dev_init(struct arizona *arizona)
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(arizona->dev, -1, early_devs,
|
||||
ARRAY_SIZE(early_devs), NULL, 0);
|
||||
ARRAY_SIZE(early_devs), NULL, 0, NULL);
|
||||
if (ret != 0) {
|
||||
dev_err(dev, "Failed to add early children: %d\n", ret);
|
||||
return ret;
|
||||
@@ -516,11 +516,11 @@ int __devinit arizona_dev_init(struct arizona *arizona)
|
||||
switch (arizona->type) {
|
||||
case WM5102:
|
||||
ret = mfd_add_devices(arizona->dev, -1, wm5102_devs,
|
||||
ARRAY_SIZE(wm5102_devs), NULL, 0);
|
||||
ARRAY_SIZE(wm5102_devs), NULL, 0, NULL);
|
||||
break;
|
||||
case WM5110:
|
||||
ret = mfd_add_devices(arizona->dev, -1, wm5110_devs,
|
||||
ARRAY_SIZE(wm5102_devs), NULL, 0);
|
||||
ARRAY_SIZE(wm5102_devs), NULL, 0, NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -913,14 +913,14 @@ static int __init asic3_mfd_probe(struct platform_device *pdev,
|
||||
if (pdata->clock_rate) {
|
||||
ds1wm_pdata.clock_rate = pdata->clock_rate;
|
||||
ret = mfd_add_devices(&pdev->dev, pdev->id,
|
||||
&asic3_cell_ds1wm, 1, mem, asic->irq_base);
|
||||
&asic3_cell_ds1wm, 1, mem, asic->irq_base, NULL);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (mem_sdio && (irq >= 0)) {
|
||||
ret = mfd_add_devices(&pdev->dev, pdev->id,
|
||||
&asic3_cell_mmc, 1, mem_sdio, irq);
|
||||
&asic3_cell_mmc, 1, mem_sdio, irq, NULL);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
}
|
||||
@@ -934,7 +934,7 @@ static int __init asic3_mfd_probe(struct platform_device *pdev,
|
||||
asic3_cell_leds[i].pdata_size = sizeof(pdata->leds[i]);
|
||||
}
|
||||
ret = mfd_add_devices(&pdev->dev, 0,
|
||||
asic3_cell_leds, ASIC3_NUM_LEDS, NULL, 0);
|
||||
asic3_cell_leds, ASIC3_NUM_LEDS, NULL, 0, NULL);
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
@@ -149,7 +149,7 @@ static int __devinit cs5535_mfd_probe(struct pci_dev *pdev,
|
||||
}
|
||||
|
||||
err = mfd_add_devices(&pdev->dev, -1, cs5535_mfd_cells,
|
||||
ARRAY_SIZE(cs5535_mfd_cells), NULL, 0);
|
||||
ARRAY_SIZE(cs5535_mfd_cells), NULL, 0, NULL);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "MFD add devices failed: %d\n", err);
|
||||
goto err_disable;
|
||||
|
||||
@@ -803,7 +803,7 @@ int __devinit da9052_device_init(struct da9052 *da9052, u8 chip_id)
|
||||
dev_err(da9052->dev, "DA9052 ADC IRQ failed ret=%d\n", ret);
|
||||
|
||||
ret = mfd_add_devices(da9052->dev, -1, da9052_subdev_info,
|
||||
ARRAY_SIZE(da9052_subdev_info), NULL, 0);
|
||||
ARRAY_SIZE(da9052_subdev_info), NULL, 0, NULL);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
|
||||
cell->pdata_size = sizeof(*davinci_vc);
|
||||
|
||||
ret = mfd_add_devices(&pdev->dev, pdev->id, davinci_vc->cells,
|
||||
DAVINCI_VC_CELLS, NULL, 0);
|
||||
DAVINCI_VC_CELLS, NULL, 0, NULL);
|
||||
if (ret != 0) {
|
||||
dev_err(&pdev->dev, "fail to register client devices\n");
|
||||
goto fail4;
|
||||
|
||||
@@ -3010,7 +3010,7 @@ static int __devinit db8500_prcmu_probe(struct platform_device *pdev)
|
||||
prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET);
|
||||
|
||||
err = mfd_add_devices(&pdev->dev, 0, db8500_prcmu_devs,
|
||||
ARRAY_SIZE(db8500_prcmu_devs), NULL, 0);
|
||||
ARRAY_SIZE(db8500_prcmu_devs), NULL, 0, NULL);
|
||||
if (err) {
|
||||
pr_err("prcmu: Failed to add subdevices\n");
|
||||
return err;
|
||||
|
||||
@@ -168,7 +168,7 @@ static int __init pasic3_probe(struct platform_device *pdev)
|
||||
/* the first 5 PASIC3 registers control the DS1WM */
|
||||
ds1wm_resources[0].end = (5 << asic->bus_shift) - 1;
|
||||
ret = mfd_add_devices(&pdev->dev, pdev->id,
|
||||
&ds1wm_cell, 1, r, irq);
|
||||
&ds1wm_cell, 1, r, irq, NULL);
|
||||
if (ret < 0)
|
||||
dev_warn(dev, "failed to register DS1WM\n");
|
||||
}
|
||||
@@ -176,7 +176,8 @@ static int __init pasic3_probe(struct platform_device *pdev)
|
||||
if (pdata && pdata->led_pdata) {
|
||||
led_cell.platform_data = pdata->led_pdata;
|
||||
led_cell.pdata_size = sizeof(struct pasic3_leds_machinfo);
|
||||
ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0);
|
||||
ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r,
|
||||
0, NULL);
|
||||
if (ret < 0)
|
||||
dev_warn(dev, "failed to register LED device\n");
|
||||
}
|
||||
|
||||
@@ -344,13 +344,13 @@ static int __devinit intel_msic_init_devices(struct intel_msic *msic)
|
||||
continue;
|
||||
|
||||
ret = mfd_add_devices(&pdev->dev, -1, &msic_devs[i], 1, NULL,
|
||||
pdata->irq[i]);
|
||||
pdata->irq[i], NULL);
|
||||
if (ret)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(&pdev->dev, 0, msic_other_devs,
|
||||
ARRAY_SIZE(msic_other_devs), NULL, 0);
|
||||
ARRAY_SIZE(msic_other_devs), NULL, 0, NULL);
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ static int __devinit cmodio_probe_submodules(struct cmodio_device *priv)
|
||||
}
|
||||
|
||||
return mfd_add_devices(&pdev->dev, 0, priv->cells,
|
||||
num_probed, NULL, pdev->irq);
|
||||
num_probed, NULL, pdev->irq, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -287,7 +287,8 @@ static int __devinit jz4740_adc_probe(struct platform_device *pdev)
|
||||
writeb(0xff, adc->base + JZ_REG_ADC_CTRL);
|
||||
|
||||
ret = mfd_add_devices(&pdev->dev, 0, jz4740_adc_cells,
|
||||
ARRAY_SIZE(jz4740_adc_cells), mem_base, irq_base);
|
||||
ARRAY_SIZE(jz4740_adc_cells), mem_base,
|
||||
irq_base, NULL);
|
||||
if (ret < 0)
|
||||
goto err_clk_put;
|
||||
|
||||
|
||||
@@ -393,7 +393,8 @@ static int __devinit lm3533_device_als_init(struct lm3533 *lm3533)
|
||||
lm3533_als_devs[0].platform_data = pdata->als;
|
||||
lm3533_als_devs[0].pdata_size = sizeof(*pdata->als);
|
||||
|
||||
ret = mfd_add_devices(lm3533->dev, 0, lm3533_als_devs, 1, NULL, 0);
|
||||
ret = mfd_add_devices(lm3533->dev, 0, lm3533_als_devs, 1, NULL,
|
||||
0, NULL);
|
||||
if (ret) {
|
||||
dev_err(lm3533->dev, "failed to add ALS device\n");
|
||||
return ret;
|
||||
@@ -422,7 +423,7 @@ static int __devinit lm3533_device_bl_init(struct lm3533 *lm3533)
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(lm3533->dev, 0, lm3533_bl_devs,
|
||||
pdata->num_backlights, NULL, 0);
|
||||
pdata->num_backlights, NULL, 0, NULL);
|
||||
if (ret) {
|
||||
dev_err(lm3533->dev, "failed to add backlight devices\n");
|
||||
return ret;
|
||||
@@ -451,7 +452,7 @@ static int __devinit lm3533_device_led_init(struct lm3533 *lm3533)
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(lm3533->dev, 0, lm3533_led_devs,
|
||||
pdata->num_leds, NULL, 0);
|
||||
pdata->num_leds, NULL, 0, NULL);
|
||||
if (ret) {
|
||||
dev_err(lm3533->dev, "failed to add LED devices\n");
|
||||
return ret;
|
||||
|
||||
+3
-21
@@ -750,7 +750,7 @@ gpe0_done:
|
||||
|
||||
lpc_ich_finalize_cell(&lpc_ich_cells[LPC_GPIO], id);
|
||||
ret = mfd_add_devices(&dev->dev, -1, &lpc_ich_cells[LPC_GPIO],
|
||||
1, NULL, 0);
|
||||
1, NULL, 0, NULL);
|
||||
|
||||
gpio_done:
|
||||
if (acpi_conflict)
|
||||
@@ -765,7 +765,6 @@ static int __devinit lpc_ich_init_wdt(struct pci_dev *dev,
|
||||
u32 base_addr_cfg;
|
||||
u32 base_addr;
|
||||
int ret;
|
||||
bool acpi_conflict = false;
|
||||
struct resource *res;
|
||||
|
||||
/* Setup power management base register */
|
||||
@@ -780,20 +779,11 @@ static int __devinit lpc_ich_init_wdt(struct pci_dev *dev,
|
||||
res = wdt_io_res(ICH_RES_IO_TCO);
|
||||
res->start = base_addr + ACPIBASE_TCO_OFF;
|
||||
res->end = base_addr + ACPIBASE_TCO_END;
|
||||
ret = acpi_check_resource_conflict(res);
|
||||
if (ret) {
|
||||
acpi_conflict = true;
|
||||
goto wdt_done;
|
||||
}
|
||||
|
||||
res = wdt_io_res(ICH_RES_IO_SMI);
|
||||
res->start = base_addr + ACPIBASE_SMI_OFF;
|
||||
res->end = base_addr + ACPIBASE_SMI_END;
|
||||
ret = acpi_check_resource_conflict(res);
|
||||
if (ret) {
|
||||
acpi_conflict = true;
|
||||
goto wdt_done;
|
||||
}
|
||||
|
||||
lpc_ich_enable_acpi_space(dev);
|
||||
|
||||
/*
|
||||
@@ -813,21 +803,13 @@ static int __devinit lpc_ich_init_wdt(struct pci_dev *dev,
|
||||
res = wdt_mem_res(ICH_RES_MEM_GCS);
|
||||
res->start = base_addr + ACPIBASE_GCS_OFF;
|
||||
res->end = base_addr + ACPIBASE_GCS_END;
|
||||
ret = acpi_check_resource_conflict(res);
|
||||
if (ret) {
|
||||
acpi_conflict = true;
|
||||
goto wdt_done;
|
||||
}
|
||||
}
|
||||
|
||||
lpc_ich_finalize_cell(&lpc_ich_cells[LPC_WDT], id);
|
||||
ret = mfd_add_devices(&dev->dev, -1, &lpc_ich_cells[LPC_WDT],
|
||||
1, NULL, 0);
|
||||
1, NULL, 0, NULL);
|
||||
|
||||
wdt_done:
|
||||
if (acpi_conflict)
|
||||
pr_warn("Resource conflict(s) found affecting %s\n",
|
||||
lpc_ich_cells[LPC_WDT].name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,8 @@ static int __devinit lpc_sch_probe(struct pci_dev *dev,
|
||||
lpc_sch_cells[i].id = id->device;
|
||||
|
||||
ret = mfd_add_devices(&dev->dev, 0,
|
||||
lpc_sch_cells, ARRAY_SIZE(lpc_sch_cells), NULL, 0);
|
||||
lpc_sch_cells, ARRAY_SIZE(lpc_sch_cells), NULL,
|
||||
0, NULL);
|
||||
if (ret)
|
||||
goto out_dev;
|
||||
|
||||
@@ -153,7 +154,8 @@ static int __devinit lpc_sch_probe(struct pci_dev *dev,
|
||||
tunnelcreek_cells[i].id = id->device;
|
||||
|
||||
ret = mfd_add_devices(&dev->dev, 0, tunnelcreek_cells,
|
||||
ARRAY_SIZE(tunnelcreek_cells), NULL, 0);
|
||||
ARRAY_SIZE(tunnelcreek_cells), NULL,
|
||||
0, NULL);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Loaded 20 of 58 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user