File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ static irqreturn_t sh_rtc_alarm(int irq, void *dev_id)
115
115
return IRQ_RETVAL (pending );
116
116
}
117
117
118
- static inline void sh_rtc_setaie (struct device * dev , unsigned int enable )
118
+ static int sh_rtc_alarm_irq_enable (struct device * dev , unsigned int enable )
119
119
{
120
120
struct sh_rtc * rtc = dev_get_drvdata (dev );
121
121
unsigned int tmp ;
@@ -132,11 +132,7 @@ static inline void sh_rtc_setaie(struct device *dev, unsigned int enable)
132
132
writeb (tmp , rtc -> regbase + RCR1 );
133
133
134
134
spin_unlock_irq (& rtc -> lock );
135
- }
136
135
137
- static int sh_rtc_alarm_irq_enable (struct device * dev , unsigned int enabled )
138
- {
139
- sh_rtc_setaie (dev , enabled );
140
136
return 0 ;
141
137
}
142
138
@@ -457,7 +453,7 @@ static void __exit sh_rtc_remove(struct platform_device *pdev)
457
453
{
458
454
struct sh_rtc * rtc = platform_get_drvdata (pdev );
459
455
460
- sh_rtc_setaie (& pdev -> dev , 0 );
456
+ sh_rtc_alarm_irq_enable (& pdev -> dev , 0 );
461
457
462
458
clk_disable (rtc -> clk );
463
459
}
You can’t perform that action at this time.
0 commit comments