aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/sh_cmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/sh_cmt.c')
-rw-r--r--drivers/clocksource/sh_cmt.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c
index 55d3e03f2cd4..ef773db080e9 100644
--- a/drivers/clocksource/sh_cmt.c
+++ b/drivers/clocksource/sh_cmt.c
@@ -776,11 +776,8 @@ static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch,
776 int ret; 776 int ret;
777 777
778 irq = platform_get_irq(ch->cmt->pdev, ch->index); 778 irq = platform_get_irq(ch->cmt->pdev, ch->index);
779 if (irq < 0) { 779 if (irq < 0)
780 dev_err(&ch->cmt->pdev->dev, "ch%u: failed to get irq\n",
781 ch->index);
782 return irq; 780 return irq;
783 }
784 781
785 ret = request_irq(irq, sh_cmt_interrupt, 782 ret = request_irq(irq, sh_cmt_interrupt,
786 IRQF_TIMER | IRQF_IRQPOLL | IRQF_NOBALANCING, 783 IRQF_TIMER | IRQF_IRQPOLL | IRQF_NOBALANCING,
@@ -921,13 +918,25 @@ static const struct platform_device_id sh_cmt_id_table[] = {
921MODULE_DEVICE_TABLE(platform, sh_cmt_id_table); 918MODULE_DEVICE_TABLE(platform, sh_cmt_id_table);
922 919
923static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { 920static const struct of_device_id sh_cmt_of_table[] __maybe_unused = {
924 { .compatible = "renesas,cmt-48", .data = &sh_cmt_info[SH_CMT_48BIT] }, 921 {
922 /* deprecated, preserved for backward compatibility */
923 .compatible = "renesas,cmt-48",
924 .data = &sh_cmt_info[SH_CMT_48BIT]
925 },
925 { 926 {
926 /* deprecated, preserved for backward compatibility */ 927 /* deprecated, preserved for backward compatibility */
927 .compatible = "renesas,cmt-48-gen2", 928 .compatible = "renesas,cmt-48-gen2",
928 .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] 929 .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
929 }, 930 },
930 { 931 {
932 .compatible = "renesas,r8a7740-cmt1",
933 .data = &sh_cmt_info[SH_CMT_48BIT]
934 },
935 {
936 .compatible = "renesas,sh73a0-cmt1",
937 .data = &sh_cmt_info[SH_CMT_48BIT]
938 },
939 {
931 .compatible = "renesas,rcar-gen2-cmt0", 940 .compatible = "renesas,rcar-gen2-cmt0",
932 .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] 941 .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
933 }, 942 },