[PATCH] i2c: Fallback to of_node of parent
Florian Meier
florian.meier at koalo.de
Sat Nov 16 08:59:15 PST 2013
I have looked through all bus drivers and in most
cases they have a corresponding line that could be removed.
Although, this patch would break i2c-powermac, because it
relies on the fact that of_node stays NULL.
Any idea how to handle that?
Greetings,
Florian
On 16.11.2013 17:11, Florian Meier wrote:
> Ok, I will try to find all relevant lines.
> Where is the best place to document this?
>
> Greetings,
> Florian
>
> 2013/11/16 Wolfram Sang <wsa at the-dreams.de>:
>>
>>> + if (!dev->of_node && dev->parent)
>>> + dev->of_node = dev->parent->of_node;
>>> +
>>
>> That is not enough. Current drivers could then have the assignment
>> removed and even more important, this behaviour should be documented.
>>
>> Regards,
>>
>> Wolfram
>>
More information about the linux-rpi-kernel
mailing list