rtc: tps65910: Use platform_get_irq to get RTC irq details
PATCH v2 1/1 rtc: tps65910: Use platform_get_irq to get RTC irq details
As RTC driver needs only irq number from platform data, using platform_get_irq(), instead of generic dev_get_platdata().
---
delta from v1:
Removed unrelated clean up done in the RTC driver, with patch #1.
drivers/rtc/rtc-tps65910.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/rtc/rtc-tps65910.c +1 -4
@@ -226,7 +226,6 @@ static int __devinit tps65910_rtc_probe(struct platform_device *pdev) {struct tps65910 *tps65910 =NULL ;struct tps65910_rtc *tps_rtc =NULL ; -struct tps65910_board *pmic_plat_data;int ret;int irq;u32 rtc_reg;
@@ -253,15 +252,13 @@ static int __devinit tps65910_rtc_probe(struct platform_device *pdev)if (ret <0 )return ret; - pmic_plat_data =dev_get_platdata (tps65910->dev); - irq = pmic_plat_data->irq_base; + irq =platform_get_irq (pdev,0 );if (irq <=0 ) {dev_warn (&pdev->dev,"Wake up is not possible as irq = %d\n" , irq);return ret; } - irq +=TPS65910_IRQ_RTC_ALARM ; ret =devm_request_threaded_irq (&pdev->dev, irq,NULL , tps65910_rtc_interrupt,IRQF_TRIGGER_LOW ,"rtc-tps65910" , &pdev->dev);
Signature · 1 line
1.7.1.1
Quoted 2 lines · Venu Byravarasu
As RTC driver needs only irq number from platform data, using
platform_get_irq(), instead of genericdev_get_platdata().
This seems fine to me now.
However, it'd be useful to post all the patches related to this issue at one time, so we can get a clear picture of everything that goes into fixing the problem.
Quoted 10 lines
-----Original Message-----
From: Stephen Warren [mailto:[email protected]]
Sent: Tuesday, September 25, 2012 11:51 AM
To: Venu Byravarasu
Cc: [email protected]; [email protected]; linux- [email protected]; [email protected]
Subject: Re: [PATCH v2] rtc: tps65910: Useplatform_get_irqto get RTC irq detailsOn 09/24/2012 11:29 PM, Venu Byravarasu wrote:
Quoted 8 lines
Quoted 2 lines
As RTC driver needs only irq number from platform data, using
platform_get_irq(), instead of genericdev_get_platdata().This seems fine to me now.
However, it'd be useful to post all the patches related to this issue at one time, so we can get a clear picture of everything that goes into fixing the problem.
Sure Stephen.
Will push mfd patches soon.