OSDN Git Service

of/platform: Initialise dev->fwnode appropriately
authorRobin Murphy <robin.murphy@arm.com>
Wed, 14 Sep 2016 15:01:24 +0000 (16:01 +0100)
committerRob Herring <robh@kernel.org>
Thu, 15 Sep 2016 13:35:56 +0000 (08:35 -0500)
commitf94277af03ead0d3bf24a190a44d2b4cd6016549
treebb7c7a0b00e856f8667f4678a5cfb92c7d0636b4
parenta67e9472da423ec47a3586920b526ebaedf25fc3
of/platform: Initialise dev->fwnode appropriately

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: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/platform.c