diff options
Diffstat (limited to 'drivers/rtc/class.c')
-rw-r--r-- | drivers/rtc/class.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 587d251be454..8b3cd31d6a61 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c | |||
@@ -156,6 +156,8 @@ struct rtc_device *rtc_device_register(const char *name, struct device *dev, | |||
156 | strlcpy(rtc->name, name, RTC_DEVICE_NAME_SIZE); | 156 | strlcpy(rtc->name, name, RTC_DEVICE_NAME_SIZE); |
157 | snprintf(rtc->dev.bus_id, BUS_ID_SIZE, "rtc%d", id); | 157 | snprintf(rtc->dev.bus_id, BUS_ID_SIZE, "rtc%d", id); |
158 | 158 | ||
159 | rtc_dev_prepare(rtc); | ||
160 | |||
159 | err = device_register(&rtc->dev); | 161 | err = device_register(&rtc->dev); |
160 | if (err) | 162 | if (err) |
161 | goto exit_kfree; | 163 | goto exit_kfree; |