rtc: aspeed: drop needless struct aspeed_rtc::rtc_dev member
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 4 Mar 2025 17:05:31 +0000 (17:05 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Mar 2025 22:08:00 +0000 (23:08 +0100)
commitd19111dff9c2dd0fcafaaea634236ecd0ec29c6a
tree39a18d12e17447d49c646b515257aedb878a6c9d
parentafe5f9f94d1116e14c84908c64f589aa142745c4
rtc: aspeed: drop needless struct aspeed_rtc::rtc_dev member

The memory pointed to by the ::rtc_dev member is managed via devres,
and no code in this driver uses it past _probe().

We can drop it from the structure and just use a local temporary
variable, reducing runtime memory consumption by a few bytes.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250304-rtc-cleanups-v2-3-d4689a71668c@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-aspeed.c