Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753158AbbGAHgy (ORCPT ); Wed, 1 Jul 2015 03:36:54 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34601 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbbGAHgs (ORCPT ); Wed, 1 Jul 2015 03:36:48 -0400 Date: Wed, 1 Jul 2015 08:36:43 +0100 From: Lee Jones To: Tomeu Vizoso Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Mark Brown , Samuel Ortiz Subject: Re: [PATCH v1 03/10] mfd: Have child devices point to their firmware nodes Message-ID: <20150701073643.GA3210@x1> References: <1435676108-20590-1-git-send-email-tomeu.vizoso@collabora.com> <1435676108-20590-4-git-send-email-tomeu.vizoso@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1435676108-20590-4-git-send-email-tomeu.vizoso@collabora.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1213 Lines: 36 On Tue, 30 Jun 2015, Tomeu Vizoso wrote: > This is needed by platform-independent code that needs to do something > with devices based on the data provided by the firmware. > > Signed-off-by: Tomeu Vizoso > --- > > drivers/mfd/mfd-core.c | 1 + > 1 file changed, 1 insertion(+) Acked-by: Lee Jones > diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c > index 14fd5cb..e2422ea 100644 > --- a/drivers/mfd/mfd-core.c > +++ b/drivers/mfd/mfd-core.c > @@ -158,6 +158,7 @@ static int mfd_add_device(struct device *parent, int id, > for_each_child_of_node(parent->of_node, np) { > if (of_device_is_compatible(np, cell->of_compatible)) { > pdev->dev.of_node = np; > + pdev->dev.fwnode = &pdev->dev.of_node->fwnode; > break; > } > } -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- 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/