]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: sh: use local variables in probe() for mapping IO
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 27 Feb 2025 13:43:02 +0000 (14:43 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 8 Apr 2025 13:56:19 +0000 (15:56 +0200)
commitea59ad0ca975841ea490315d886a612520e9e9da
treeb0a8eae1d213f4230085145d1b5dbbec068ddc14
parent33df0a509dad96046aa7f9b133495bdccf77c593
rtc: sh: use local variables in probe() for mapping IO

No need to store the resource for the registers in the per-device struct
because we only need it during probe. Remove some unneeded unlikely()
while here and correct the type of 'regsize'.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250227134256.9167-17-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sh.c