Message ID | 20230911144702.948246-3-biju.das.jz@bp.renesas.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | Enable Renesas PMIC RAA215300 and RTC builtin support | expand |
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 625effe6cb65..f46160d76b65 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -37,6 +37,7 @@ static void rtc_device_release(struct device *dev) cancel_work_sync(&rtc->irqwork); ida_simple_remove(&rtc_ida, rtc->id); + mutex_destroy(&rtc->ops_lock); kfree(rtc); }