diff options
author | Ajay Nandakumar <anandakumarm@nvidia.com> | 2013-08-28 10:32:01 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:43:07 -0700 |
commit | e3b85bed42b4fa358d4f7be39efe09eff95431fa (patch) | |
tree | be98829a1e56ad67426c59b0adf23cd80827fff7 /drivers/extcon | |
parent | f7dec0ac1cd2d30555dbd5b870026fd41b1fc93e (diff) |
palmas: obtain IRQ from palmas_irq_get_virq
obtain interrupts through palmas_irq_get_virq instead of
platform_get_irq for MFD palmas drivers.
Change-Id: I66791b6adcb2c7f365d5b90d7b76c6d3ad66c8c6
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/267068
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-palmas.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c index ad2d8c0f3643..4a05f534ee35 100644 --- a/drivers/extcon/extcon-palmas.c +++ b/drivers/extcon/extcon-palmas.c @@ -157,8 +157,10 @@ static int palmas_extcon_probe(struct platform_device *pdev) palma_econ->enable_vbus_detection = epdata->enable_vbus_detection; palma_econ->enable_id_pin_detection = epdata->enable_id_pin_detection; - palma_econ->vbus_irq = platform_get_irq(pdev, 0); - palma_econ->id_irq = platform_get_irq(pdev, 1); + palma_econ->vbus_irq = + palmas_irq_get_virq(palma_econ->palmas, PALMAS_VBUS_IRQ); + palma_econ->id_irq = + palmas_irq_get_virq(palma_econ->palmas, PALMAS_ID_IRQ); ret = extcon_dev_register(palma_econ->edev, NULL); if (ret < 0) { |