RTC: rtc-omap: Fix a leak of the IRQ during init failure
[pandora-kernel.git] / drivers / rtc / rtc-omap.c
index de0dd7b..bcae8dd 100644 (file)
@@ -394,7 +394,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
        return 0;
 
 fail2:
-       free_irq(omap_rtc_timer, NULL);
+       free_irq(omap_rtc_timer, rtc);
 fail1:
        rtc_device_unregister(rtc);
 fail0: