diff mbox series

rtc: Remove unused rtc_dev_exit().

Message ID 1e2f9a99-435d-e149-7456-dfacd53be85a@I-love.SAKURA.ne.jp
State Accepted
Headers show
Series rtc: Remove unused rtc_dev_exit(). | expand

Commit Message

Tetsuo Handa June 11, 2022, 2:38 p.m. UTC
Commit 270a3bd6bdc21407 ("rtc: make class.c explicitly non-modular")
removed rtc_dev_exit() call.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
---
 drivers/rtc/dev.c      | 6 ------
 drivers/rtc/rtc-core.h | 5 -----
 2 files changed, 11 deletions(-)

Comments

Alexandre Belloni June 24, 2022, 5:29 p.m. UTC | #1
On Sat, 11 Jun 2022 23:38:46 +0900, Tetsuo Handa wrote:
> Commit 270a3bd6bdc21407 ("rtc: make class.c explicitly non-modular")
> removed rtc_dev_exit() call.
> 
> 

Applied, thanks!

[1/1] rtc: Remove unused rtc_dev_exit().
      commit: 377e781eea94f8770b35c30664bc4d1751bc0645

Best regards,
diff mbox series

Patch

diff --git a/drivers/rtc/dev.c b/drivers/rtc/dev.c
index 5cf90daf975c..4aad9bb99868 100644
--- a/drivers/rtc/dev.c
+++ b/drivers/rtc/dev.c
@@ -566,9 +566,3 @@  void __init rtc_dev_init(void)
 	if (err < 0)
 		pr_err("failed to allocate char dev region\n");
 }
-
-void __exit rtc_dev_exit(void)
-{
-	if (rtc_devt)
-		unregister_chrdev_region(rtc_devt, RTC_DEV_MAX);
-}
diff --git a/drivers/rtc/rtc-core.h b/drivers/rtc/rtc-core.h
index 0abf98983e13..4b10a1b8f370 100644
--- a/drivers/rtc/rtc-core.h
+++ b/drivers/rtc/rtc-core.h
@@ -2,7 +2,6 @@ 
 #ifdef CONFIG_RTC_INTF_DEV
 
 extern void __init rtc_dev_init(void);
-extern void __exit rtc_dev_exit(void);
 extern void rtc_dev_prepare(struct rtc_device *rtc);
 
 #else
@@ -11,10 +10,6 @@  static inline void rtc_dev_init(void)
 {
 }
 
-static inline void rtc_dev_exit(void)
-{
-}
-
 static inline void rtc_dev_prepare(struct rtc_device *rtc)
 {
 }