[PATCH] i2c: exynos5: Init data before registering interrupt handler

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Mon Mar 4 07:08:00 PST 2024


On 04/03/2024 16:04, Andi Shyti wrote:
>> -
>>  	i2c->variant = of_device_get_match_data(&pdev->dev);
>> +	if (!i2c->variant) {
>> +		dev_err(&pdev->dev, "can't match device variant\n");
>> +		return -ENODEV;
> 
> return dev_err_probe(), please.

How this condition even possibly happen? And how is this related to the
problem described here?

No, don't mix two different issues.

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list