From patchwork Wed Jun 17 13:42:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 6626241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 64AD59F326 for ; Wed, 17 Jun 2015 13:48:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9B3322055C for ; Wed, 17 Jun 2015 13:48:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C73AB204E2 for ; Wed, 17 Jun 2015 13:48:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5Df1-0005bl-UN; Wed, 17 Jun 2015 13:45:47 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5Dcm-0002UF-Li for linux-arm-kernel@lists.infradead.org; Wed, 17 Jun 2015 13:43:29 +0000 Received: by wiga1 with SMTP id a1so140139663wig.0 for ; Wed, 17 Jun 2015 06:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mcc2YA74d70CBzTcHLU5krecUwbqcxHbpSX+idDf0yw=; b=o7U4cPAST0scf2nB0mZYBmQhwTwk0PsWqhhFzkmTG6CzmMuuaDSNtBKYm2Fh5xCl6v cPpuDgt/00ztbu+GMAxvdJwQfgXC2ayg7ARD4R43pUnu3fB7iojqLPtfM0gKEAZMiMh6 loDm39BUXMXrS0ElZGkf95CK+bqpN8l/+hf2vYUT63WXbUrNglM+fRUba2YiG5bVtg3O BKPnVqqntf2LPXGr0NcNIrSZVHSlZkHYe6CEkId2DeTZk4SXn5qRaujrYP2+JF17i5Z3 onMnSBW/IbqDZIfqwsRhVzYTVa6jk1tkHRQZkoZWoqpBPVsgiTw7+eEmTqVSkicU6WSa fllg== X-Received: by 10.180.88.8 with SMTP id bc8mr17665671wib.19.1434548586420; Wed, 17 Jun 2015 06:43:06 -0700 (PDT) Received: from cizrna.lan ([109.72.12.132]) by mx.google.com with ESMTPSA id v3sm6920361wja.31.2015.06.17.06.43.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2015 06:43:05 -0700 (PDT) From: Tomeu Vizoso To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/13] of/platform: Set fwnode field for new devices Date: Wed, 17 Jun 2015 15:42:16 +0200 Message-Id: <1434548543-22949-7-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1434548543-22949-1-git-send-email-tomeu.vizoso@collabora.com> References: <1434548543-22949-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150617_064328_896134_D25C2EF9 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Mark Rutland , Krzysztof Kozlowski , Linus Walleij , Andrzej Hajda , Thierry Reding , Lv Zheng , Alexander Holler , Alexandre Courbot , Russell King , Pawel Moll , Stephen Warren , Robert Moore , Grant Likely , Len Brown , Arnd Bergmann , Ian Campbell , Rob Herring , =?UTF-8?q?Terje=20Bergstr=C3=B6m?= , Tomeu Vizoso , Greg Kroah-Hartman , Dmitry Torokhov , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Mark Brown , Kumar Gala , Javier Martinez Canillas X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)