Re: [PATCH] bus: ti-sysc: unregister notifier on driver register failure
From: Kevin Hilman
Date: Mon Aug 31 2026 - 20:13:20 EST
On Tue, 28 Jul 2026 17:18:58 +0800, Can Peng wrote:
> sysc_init() registers the platform bus notifier before registering the
> platform driver. If platform_driver_register() fails, the function returns
> the error directly and leaves the notifier registered.
>
> Mirror the exit path on this failure by unregistering the notifier before
> returning the error. Also check and return the notifier registration error
> instead of continuing without the notifier installed.
>
> [...]
Applied, thanks!
[1/1] bus: ti-sysc: unregister notifier on driver register failure
(no commit info)
Best regards,
--
Kevin Hilman (TI) <khilman@xxxxxxxxxxxx>