[PATCH 06/18] rtc: ftrtc010: drop needless struct ftrtc010_rtc::rtc_dev member

Linus Walleij linus.walleij at linaro.org
Sun Mar 2 05:12:25 AEDT 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_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 at linaro.org>

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

Yours,
Linus Walleij


More information about the Linux-aspeed mailing list