diff options
Diffstat (limited to 'drivers/rtc/rtc-test.c')
-rw-r--r-- | drivers/rtc/rtc-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c index f50a1b8e1607..254c9fce27da 100644 --- a/drivers/rtc/rtc-test.c +++ b/drivers/rtc/rtc-test.c | |||
@@ -101,11 +101,11 @@ static ssize_t test_irq_store(struct device *dev, | |||
101 | retval = count; | 101 | retval = count; |
102 | local_irq_disable(); | 102 | local_irq_disable(); |
103 | if (strncmp(buf, "tick", 4) == 0) | 103 | if (strncmp(buf, "tick", 4) == 0) |
104 | rtc_update_irq(&rtc->class_dev, 1, RTC_PF | RTC_IRQF); | 104 | rtc_update_irq(rtc, 1, RTC_PF | RTC_IRQF); |
105 | else if (strncmp(buf, "alarm", 5) == 0) | 105 | else if (strncmp(buf, "alarm", 5) == 0) |
106 | rtc_update_irq(&rtc->class_dev, 1, RTC_AF | RTC_IRQF); | 106 | rtc_update_irq(rtc, 1, RTC_AF | RTC_IRQF); |
107 | else if (strncmp(buf, "update", 6) == 0) | 107 | else if (strncmp(buf, "update", 6) == 0) |
108 | rtc_update_irq(&rtc->class_dev, 1, RTC_UF | RTC_IRQF); | 108 | rtc_update_irq(rtc, 1, RTC_UF | RTC_IRQF); |
109 | else | 109 | else |
110 | retval = -EINVAL; | 110 | retval = -EINVAL; |
111 | local_irq_enable(); | 111 | local_irq_enable(); |