History

drivers/rtc/rtc-da9052.c: fix for rtc device registration

Add support for the virtual irq since now MFD only handles virtual irq Without this patch rtc device will fail in registration. (akpm: Ashish has a different version whcih will be needed for 3.8.x and earlier kernels)

Ashish Jangam committed 13 years ago

Commit 925e8ea1 parent f9228b21 file · +3 −5Browse files

Unified · Split

drivers/rtc/rtc-da9052.c+3−5
@@ -239,11 +239,9 @@ static int da9052_rtc_probe(struct platform_device *pdev) · 238 unmodified lines
239 239
240 rtc->da9052 = dev_get_drvdata(pdev->dev.parent);240 rtc->da9052 = dev_get_drvdata(pdev->dev.parent);
241 platform_set_drvdata(pdev, rtc);241 platform_set_drvdata(pdev, rtc);
242 rtc->irq = platform_get_irq_byname(pdev, "ALM");242 rtc->irq = DA9052_IRQ_ALARM;
243 ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,243 ret = da9052_request_irq(rtc->da9052, rtc->irq, "ALM",
244 da9052_rtc_irq,244 da9052_rtc_irq, rtc);
245 IRQF_TRIGGER_LOW | IRQF_ONESHOT,
246 "ALM", rtc);
247 if (ret != 0) {245 if (ret != 0) {
248 rtc_err(rtc->da9052, "irq registration failed: %d\n", ret);246 rtc_err(rtc->da9052, "irq registration failed: %d\n", ret);
249 return ret;247 return ret;