• Robin Murphy's avatar
    of/platform: Initialise dev->fwnode appropriately · f94277af
    Robin Murphy authored
    Whilst we're some of the way towards a universal firmware property
    interface, drivers which deal with both OF and ACPI probing end up
    having to do things like this:
    
        dev->of_node ? &dev->of_node->fwnode : dev->fwnode
    
    This seems unnecessary, when the OF code could instead simply fill in
    the device's fwnode when binding the of_node, and let the drivers use
    dev->fwnode either way. Let's give it a go and see what falls out.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    f94277af
platform.c 17.7 KB