]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: DEC: Ensure RTC platform device deregistration upon failure
authorMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 6 May 2026 22:43:00 +0000 (23:43 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 29 Jun 2026 09:27:15 +0000 (11:27 +0200)
commiteacaf5ae747f7dead6cc268de17a7382d79031fc
treee9244ffb5382f482d02e02000f87e2b0977adecb
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482
MIPS: DEC: Ensure RTC platform device deregistration upon failure

Switch RTC platform device registration from platform_device_register()
to platform_add_devices() so as to make sure any failure will result in
automatic device unregistration.

Fixes: fae67ad43114 ("arch/mips/dec: switch DECstation systems to rtc-cmos")
Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/dec/platform.c