[PATCH v6] dmaengine: mxs: use platform_driver_register
Vinod Koul
vkoul at kernel.org
Wed Sep 21 19:35:42 PDT 2022
On 21-09-22, 19:05, Dario Binacchi wrote:
> Driver registration fails on SOC imx8mn as its supplier, the clock
> control module, is probed later than subsys initcall level. This driver
> uses platform_driver_probe which is not compatible with deferred probing
> and won't be probed again later if probe function fails due to clock not
> being available at that time.
>
> This patch replaces the use of platform_driver_probe with
> platform_driver_register which will allow probing the driver later again
> when the clock control module will be available.
>
> The __init annotation has been dropped because it is not compatible with
> deferred probing. The code is not executed once and its memory cannot be
> freed.
Applied, thanks
--
~Vinod
More information about the linux-arm-kernel
mailing list