[PATCH 10/18] rtc: pl030: drop needless struct pl030_rtc::rtc member

Linus Walleij linus.walleij at linaro.org
Sat Mar 1 10:11:56 PST 2025


On Fri, Feb 28, 2025 at 3:07 PM André Draszik <andre.draszik at linaro.org> wrote:

> The memory pointed to by the ::rtc 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 at linaro.org>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list