diff options
Diffstat (limited to 'drivers/rtc/class.c')
-rw-r--r-- | drivers/rtc/class.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index f8a0aab218cb..5143629dedbd 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c | |||
@@ -244,7 +244,6 @@ void rtc_device_unregister(struct rtc_device *rtc) | |||
244 | rtc_proc_del_device(rtc); | 244 | rtc_proc_del_device(rtc); |
245 | device_unregister(&rtc->dev); | 245 | device_unregister(&rtc->dev); |
246 | rtc->ops = NULL; | 246 | rtc->ops = NULL; |
247 | ida_simple_remove(&rtc_ida, rtc->id); | ||
248 | mutex_unlock(&rtc->ops_lock); | 247 | mutex_unlock(&rtc->ops_lock); |
249 | put_device(&rtc->dev); | 248 | put_device(&rtc->dev); |
250 | } | 249 | } |