rtc: dev: remove rtc->name from debug message
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 2 Jun 2017 12:01:37 +0000 (14:01 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 3 Jun 2017 08:52:04 +0000 (10:52 +0200)
rtc->name is superfluous here because the rtc is already registered at that
point and its name has already been printed.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-dev.c

index e81a8711fea741b2c347f9655b2fd158db093f7d..794bc4fa4937126314bc745aae218e7e2aabc903 100644 (file)
@@ -464,7 +464,7 @@ void rtc_dev_prepare(struct rtc_device *rtc)
                return;
 
        if (rtc->id >= RTC_DEV_MAX) {
-               dev_dbg(&rtc->dev, "%s: too many RTC devices\n", rtc->name);
+               dev_dbg(&rtc->dev, "too many RTC devices\n");
                return;
        }