Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3814469ybi; Mon, 29 Jul 2019 13:09:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMrMkaiRjCdgH07AHFoXgInjh//Qzk3+cDIZNVAi8bIsq8HwP1E73DpBOsRY3fPi8VJWni X-Received: by 2002:a17:90a:f98a:: with SMTP id cq10mr113951839pjb.43.1564430941368; Mon, 29 Jul 2019 13:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430941; cv=none; d=google.com; s=arc-20160816; b=wXz0smUsdHmc4UySHHrX7Iy2LhmRMUfY9mkIsvzWoJOW0B7U5iy4W/cwcW8izA/qzO dsjGky+JThsurRBxqMiPxbw9UdUGF2/RF8e+4WxYhrvbbuQgW/ymz6p1YnviimIOhgo/ NSmahMCEQM2+iZ/ZupzYjvAUu8ej0RGs72A2ADlJKNkT5Xfslwu34qP7+EtvlpQ3Xtql UUUjfLN5MlpSh+Pqm3+KT/ckEGntguCojZrjsGRqIMJ4qd6FUhafSKHq5BeDV1FzcpKy otgAAg1yzjt1/mdQm9ADImRSY67J8r8YiJbULM4YgxIZz9vrVoWz5l1R9QHfyjem7yQV mEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8NceTABbry7F2kwcRc8R2XH6u+AIzFEBQq56nj9ncUU=; b=uq3VPGIy3wh94fMQmfbYMk62d+MkUkKqBHzZlyG6iq6nxHQiWj+AKCU+RdV0vzhYHU xAoNrJ0oRxEq/tawWLA+NgJRZYM2Bd6l8lHh11Vr63qrldFP9of/vm/9OoM8T0+inVg0 jr2f3eu8FRBQBtP8MA5ePGhPqZ2yxvHW61AXN40cF5mohhoxzRU5PYOTG5QmG4/Jk932 eS6BKVxhBaOsc2zjvevjJBZjPwkUFLqYHtbnDuBswWvzWfjnINQthvWtj+I4UU0VQYUY 8WD4cWKL13zU1I/XjP+ofzOWPKcAmvnyt6rdKalzDxAP/2wKlkGGhd431dOt+bZ2VvKb Yihw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qNUcFTDn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si31135694pfn.280.2019.07.29.13.08.46; Mon, 29 Jul 2019 13:09:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qNUcFTDn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390049AbfG2UG2 (ORCPT + 99 others); Mon, 29 Jul 2019 16:06:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:56800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388558AbfG2TlV (ORCPT ); Mon, 29 Jul 2019 15:41:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 06088206DD; Mon, 29 Jul 2019 19:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429281; bh=VxXnJ/P807ym+51bu1JQ01WrVeUIkkjT5fp71u2lyag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qNUcFTDnPbfVcauKcJAm/0BZFVZr8JvExL0dT2J/1ESXpwY3sfAeJ3DK9aITaf6r3 HxUANz3n6sVP0/ux6c/PLsexmfWlzb0DVqEC7ORAPiN3fWEO+MTOs6oEVcMtHunvHC wLsT+u25F6c2+brSnZxKyHKdFUBcEexqqihI9Awk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Hancock , Lee Jones , Sasha Levin Subject: [PATCH 4.19 049/113] mfd: core: Set fwnode for created devices Date: Mon, 29 Jul 2019 21:22:16 +0200 Message-Id: <20190729190707.272214674@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190655.455345569@linuxfoundation.org> References: <20190729190655.455345569@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit c176c6d7e932662668bcaec2d763657096589d85 ] The logic for setting the of_node on devices created by mfd did not set the fwnode pointer to match, which caused fwnode-based APIs to malfunction on these devices since the fwnode pointer was null. Fix this. Signed-off-by: Robert Hancock Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/mfd-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 94e3f32ce935..182973df1aed 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -179,6 +179,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 = &np->fwnode; break; } } -- 2.20.1