]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: class: add debug message when registration fails
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 18 Aug 2019 22:00:40 +0000 (00:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 20 Aug 2019 19:44:45 +0000 (21:44 +0200)
commit2d58e922e5d1f656e692d530bbd02e7be91b1289
tree4d3286bb946e0198c7a7c48a2aea7f1135e9e1b9
parent27d6f9e18e6b048300ac33386e39ba4fc5f6756b
rtc: class: add debug message when registration fails

Add a message when __rtc_register_device fails because rtc->ops is NULL.
This may only happen when developing a new driver so use dev_dbg to avoid
compiling it in by default.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20190818220041.17833-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/class.c