[RFC PATCH 4/5] firmware: smccc: register as platform driver

Vedashree Vidwans vvidwans at nvidia.com
Thu Dec 18 13:41:16 PST 2025



On 12/12/25 07:31, Matt Ochs wrote:
>> On Dec 8, 2025, at 16:13, Vedashree Vidwans <vvidwans at nvidia.com> wrote:
>>
>> diff --git a/drivers/firmware/smccc/lfa_fw.c b/drivers/firmware/smccc/lfa_fw.c
>> index 0e420cefa260..24916fc53420 100644
>> --- a/drivers/firmware/smccc/lfa_fw.c
>> +++ b/drivers/firmware/smccc/lfa_fw.c
> ...
>> +
>> +static int __init lfa_probe(struct platform_device *pdev)
>> +{
> 
> WARNING: modpost: vmlinux: section mismatch in reference: lfa_driver+0x0 (section: .data) -> lfa_probe (section: .init.text)
> 
> __init is not needed here, please remove.

Thank you, I will include this change in next update.

Veda



More information about the linux-arm-kernel mailing list