rtc-sh.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) | rtc-sh.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0) |
---|---|
1/* 2 * SuperH On-Chip RTC Support 3 * 4 * Copyright (C) 2006 - 2009 Paul Mundt 5 * Copyright (C) 2006 Jamie Lenehan 6 * Copyright (C) 2008 Angelo Castello 7 * 8 * Based on the old arch/sh/kernel/cpu/rtc.c by: --- 652 unchanged lines hidden (view full) --- 661 * default set. Add those in here. 662 */ 663 rtc->capabilities |= pinfo->capabilities; 664 } 665 666 if (rtc->carry_irq <= 0) { 667 /* register shared periodic/carry/alarm irq */ 668 ret = request_irq(rtc->periodic_irq, sh_rtc_shared, | 1/* 2 * SuperH On-Chip RTC Support 3 * 4 * Copyright (C) 2006 - 2009 Paul Mundt 5 * Copyright (C) 2006 Jamie Lenehan 6 * Copyright (C) 2008 Angelo Castello 7 * 8 * Based on the old arch/sh/kernel/cpu/rtc.c by: --- 652 unchanged lines hidden (view full) --- 661 * default set. Add those in here. 662 */ 663 rtc->capabilities |= pinfo->capabilities; 664 } 665 666 if (rtc->carry_irq <= 0) { 667 /* register shared periodic/carry/alarm irq */ 668 ret = request_irq(rtc->periodic_irq, sh_rtc_shared, |
669 IRQF_DISABLED, "sh-rtc", rtc); | 669 0, "sh-rtc", rtc); |
670 if (unlikely(ret)) { 671 dev_err(&pdev->dev, 672 "request IRQ failed with %d, IRQ %d\n", ret, 673 rtc->periodic_irq); 674 goto err_unmap; 675 } 676 } else { 677 /* register periodic/carry/alarm irqs */ 678 ret = request_irq(rtc->periodic_irq, sh_rtc_periodic, | 670 if (unlikely(ret)) { 671 dev_err(&pdev->dev, 672 "request IRQ failed with %d, IRQ %d\n", ret, 673 rtc->periodic_irq); 674 goto err_unmap; 675 } 676 } else { 677 /* register periodic/carry/alarm irqs */ 678 ret = request_irq(rtc->periodic_irq, sh_rtc_periodic, |
679 IRQF_DISABLED, "sh-rtc period", rtc); | 679 0, "sh-rtc period", rtc); |
680 if (unlikely(ret)) { 681 dev_err(&pdev->dev, 682 "request period IRQ failed with %d, IRQ %d\n", 683 ret, rtc->periodic_irq); 684 goto err_unmap; 685 } 686 687 ret = request_irq(rtc->carry_irq, sh_rtc_interrupt, | 680 if (unlikely(ret)) { 681 dev_err(&pdev->dev, 682 "request period IRQ failed with %d, IRQ %d\n", 683 ret, rtc->periodic_irq); 684 goto err_unmap; 685 } 686 687 ret = request_irq(rtc->carry_irq, sh_rtc_interrupt, |
688 IRQF_DISABLED, "sh-rtc carry", rtc); | 688 0, "sh-rtc carry", rtc); |
689 if (unlikely(ret)) { 690 dev_err(&pdev->dev, 691 "request carry IRQ failed with %d, IRQ %d\n", 692 ret, rtc->carry_irq); 693 free_irq(rtc->periodic_irq, rtc); 694 goto err_unmap; 695 } 696 697 ret = request_irq(rtc->alarm_irq, sh_rtc_alarm, | 689 if (unlikely(ret)) { 690 dev_err(&pdev->dev, 691 "request carry IRQ failed with %d, IRQ %d\n", 692 ret, rtc->carry_irq); 693 free_irq(rtc->periodic_irq, rtc); 694 goto err_unmap; 695 } 696 697 ret = request_irq(rtc->alarm_irq, sh_rtc_alarm, |
698 IRQF_DISABLED, "sh-rtc alarm", rtc); | 698 0, "sh-rtc alarm", rtc); |
699 if (unlikely(ret)) { 700 dev_err(&pdev->dev, 701 "request alarm IRQ failed with %d, IRQ %d\n", 702 ret, rtc->alarm_irq); 703 free_irq(rtc->carry_irq, rtc); 704 free_irq(rtc->periodic_irq, rtc); 705 goto err_unmap; 706 } --- 136 unchanged lines hidden --- | 699 if (unlikely(ret)) { 700 dev_err(&pdev->dev, 701 "request alarm IRQ failed with %d, IRQ %d\n", 702 ret, rtc->alarm_irq); 703 free_irq(rtc->carry_irq, rtc); 704 free_irq(rtc->periodic_irq, rtc); 705 goto err_unmap; 706 } --- 136 unchanged lines hidden --- |