Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753864AbbF3O5L (ORCPT ); Tue, 30 Jun 2015 10:57:11 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:36475 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753881AbbF3O4t (ORCPT ); Tue, 30 Jun 2015 10:56:49 -0400 From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Mark Brown , Tomeu Vizoso , devicetree@vger.kernel.org, Rob Herring , Grant Likely Subject: [PATCH v1 01/10] of/platform: Set fwnode field for new devices Date: Tue, 30 Jun 2015 16:54:59 +0200 Message-Id: <1435676108-20590-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1435676108-20590-1-git-send-email-tomeu.vizoso@collabora.com> References: <1435676108-20590-1-git-send-email-tomeu.vizoso@collabora.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 873 Lines: 29 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/