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