From d494163d44eff907dac6bebc22daa586164bdf1e Mon Sep 17 00:00:00 2001 From: Balaji Rao Date: Mon, 29 Dec 2008 12:11:38 +0000 Subject: Move charger initialization from core to mbc driver. When irq_handler is called from core, the irqs might not have been yet registered - which means, the initial charger state was not being set properly. Signed-off-by: Balaji Rao --- drivers/mfd/pcf50633-core.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'drivers/mfd/pcf50633-core.c') diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c index bdf93c1db67..f668b9a4e2a 100644 --- a/drivers/mfd/pcf50633-core.c +++ b/drivers/mfd/pcf50633-core.c @@ -480,7 +480,6 @@ static int pcf50633_probe(struct i2c_client *client, struct pcf50633 *pcf; struct pcf50633_platform_data *pdata; int i, ret = 0; - u8 mbcs1; int version; int variant; @@ -571,14 +570,6 @@ static int pcf50633_probe(struct i2c_client *client, dev_err(pcf->dev, "IRQ %u cannot be enabled as wake-up " "source in this hardware revision\n", client->irq); - /* Cold Intialization */ - mbcs1 = pcf50633_reg_read(pcf, PCF50633_REG_MBCS1); - - if (mbcs1 & 0x01) - pcf50633_irq_call_handler(pcf, PCF50633_IRQ_USBINS); - if (mbcs1 & 0x04) - pcf50633_irq_call_handler(pcf, PCF50633_IRQ_ADPINS); - ret = sysfs_create_group(&client->dev.kobj, &pcf_attr_group); if (ret) dev_err(pcf->dev, "error creating sysfs entries\n"); -- cgit v1.2.3