aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/class.c')
-rw-r--r--drivers/rtc/class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 10ab3b71ffc6..4dfdf019fccc 100644
--- a/drivers/rtc/class.c
+++ b/drivers/rtc/class.c
@@ -153,6 +153,7 @@ struct rtc_device *rtc_device_register(const char *name, struct device *dev,
153 mutex_init(&rtc->ops_lock); 153 mutex_init(&rtc->ops_lock);
154 spin_lock_init(&rtc->irq_lock); 154 spin_lock_init(&rtc->irq_lock);
155 spin_lock_init(&rtc->irq_task_lock); 155 spin_lock_init(&rtc->irq_task_lock);
156 init_waitqueue_head(&rtc->irq_queue);
156 157
157 strlcpy(rtc->name, name, RTC_DEVICE_NAME_SIZE); 158 strlcpy(rtc->name, name, RTC_DEVICE_NAME_SIZE);
158 snprintf(rtc->dev.bus_id, BUS_ID_SIZE, "rtc%d", id); 159 snprintf(rtc->dev.bus_id, BUS_ID_SIZE, "rtc%d", id);