rtc: class: avoid unnecessary lookup in hctosys
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 23 Mar 2020 21:30:39 +0000 (22:30 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 24 Mar 2020 21:48:04 +0000 (22:48 +0100)
commit5614a4a3ca0e8806e144419536f52df419caa14f
tree19941f71dc728d551ce7dc5b1e33c572ff48c0bf
parentf1cd223389f04bfb26bfe30b5ac2558733fee34f
rtc: class: avoid unnecessary lookup in hctosys

rtc_hctosys is only called when the relevant RTC is found, avoid looking it
up while we already have a pinter to the proper struct rtc_device.

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