Re: [PATCH 00/12] clk: samsung: Use platform_driver_probe() to avoid __refdata
From: Krzysztof Kozlowski
Date: Wed Mar 05 2025 - 16:43:54 EST
On 05/03/2025 22:42, Krzysztof Kozlowski wrote:
> RFT/RFC because testing needed. I tried to do the same on exynos5-subcmu
> and it caused weird oopses which even KASAN did not narrow. Probably
> because of multiple exynos5-subcmu devices?
>
> Switch registering platform driver to platform_driver_probe(), so the
> 'struct platform_driver' can be properly discarded after init and there
> won't be need of __refdata to silence DEBUG_SECTION_MISMATCH.
>
> The change requires using subsys_initcall instead of core_initcall,
> because no device drivers would bound in the latter, as required by
> platform_driver_probe().
Forgot to set prefix and I aborted this send. Please ignore, new posting
coming.
Best regards,
Krzysztof