lkml.org 
[lkml]   [2015]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v1 01/10] of/platform: Set fwnode field for new devices
Date
On Tue, 30 Jun 2015 16:54:59 +0200
, Tomeu Vizoso <tomeu.vizoso@collabora.com>
wrote:
> When allocating a new platform device, set the fwnode field in the
> struct device to point to the device_node.
>
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>

Acked-by: Grant Likely <grant.likely@linaro.org>

g.

> ---
>
> drivers/of/platform.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/of/platform.c b/drivers/of/platform.c
> index ddf8e42..e880f55 100644
> --- a/drivers/of/platform.c
> +++ b/drivers/of/platform.c
> @@ -139,6 +139,7 @@ struct platform_device *of_device_alloc(struct device_node *np,
> }
>
> dev->dev.of_node = of_node_get(np);
> + dev->dev.fwnode = &dev->dev.of_node->fwnode;
> dev->dev.parent = parent ? : &platform_bus;
>
> if (bus_id)
> --
> 2.4.1
>



\
 
 \ /
  Last update: 2015-06-30 22:41    [W:0.222 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site