]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
alarmtimer: Update alarmtimer_get_rtcdev() docs to reflect reality
authorStephen Boyd <swboyd@chromium.org>
Fri, 24 Jan 2020 05:58:49 +0000 (21:58 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 24 Jan 2020 20:00:20 +0000 (21:00 +0100)
This function doesn't do anything like this comment says when an RTC device
hasn't been chosen. It looks like we used to do something like that before
commit 8bc0dafb5cf3 ("alarmtimers: Rework RTC device selection using class
interface") but that's long gone now. Remove this sentence to avoid
confusing the reader.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200124055849.154411-5-swboyd@chromium.org
kernel/time/alarmtimer.c

index 9dc7a0913190cd846980f1d2a6cdd647a878fc1a..564ff5df2b0bb2662fca2097051e8812d87f33d5 100644 (file)
@@ -69,8 +69,6 @@ static DEFINE_SPINLOCK(rtcdev_lock);
  * alarmtimer_get_rtcdev - Return selected rtcdevice
  *
  * This function returns the rtc device to use for wakealarms.
- * If one has not already been chosen, it checks to see if a
- * functional rtc device is available.
  */
 struct rtc_device *alarmtimer_get_rtcdev(void)
 {