Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3141031ybi; Thu, 18 Jul 2019 21:50:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAbfOSIsN+K5eZ4vZNKua1fHZaYz/ZdxOkv2PC3aU1qtiIrX4IGoRd/W82Ct+j97M16Pyq X-Received: by 2002:a17:90a:bf0e:: with SMTP id c14mr52927693pjs.55.1563511820013; Thu, 18 Jul 2019 21:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563511820; cv=none; d=google.com; s=arc-20160816; b=PUKLifMPxe10Z3SNRv8DuxRFFV7zbvFvvow0yX5+yT55VULXBuJKXcijcJ/DDR/2bR OqvcdQFgzjup5drw5Ur1LnPuTF1FfcSgia1ZOX3dOO/mkE4LAM0LJAqSOAWul95u4FJF g0DRHg1f174ehywUEWkXvdeQtv0Tp/WcoufzDjYFaxGcCtVOO5sbV/2T695wIt72qQa6 AejD5tri2KTSrBSANPkMbBvlfoHsOtVW3vpL4eNnMJjviNLSWQ5vGUvg9og2KRXHBJkz ylkM1ysvT6AYcJFVj/6ziD3grJh8NRiLVyZCPN5I9LMYzwZfrz/Z/Hxn2pEKs/1bc1CD WKFA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N3+yWadXfUcyFsYvu/0sMeFGTLka572DTP4/p2mqbZA=; b=hAPvwwOFsbAukjCBeduDtNN734edMjiFC5pcFePxJUDz9j/L5e5EX+sGXVlwgO+V9C FWJDScoysj1r7y4KLsHXAt3YEhnYB1vD3LXrDCiRy9j9kLFPHhWPpt7Tt3nNamsyCOss FAIgh6161ubuuI4kWIAxCzz40mQVxgmnoW1DrzwqgnilkE+Y/i0dqSG1wbiJg3EY1Pf+ NtZueHqCGhGoJ/3dRgWtQpw0z33P4QBeg+3F0ufj4vHT0nMVOgn255fw6zM4VTH4pAQN gVY2w4nVxn252Faiik1EQMEYHjirAWDfFdYbLxUTWHEtczjl6P8UMiGJiulqh1uBj036 LiiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k0Uxg2zU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si1896787plp.118.2019.07.18.21.50.04; Thu, 18 Jul 2019 21:50:20 -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=k0Uxg2zU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbfGSEAH (ORCPT + 99 others); Fri, 19 Jul 2019 00:00:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:59940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbfGSEAF (ORCPT ); Fri, 19 Jul 2019 00:00:05 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 078AC21882; Fri, 19 Jul 2019 04:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563508804; bh=/TZCDMO7PmrUqAcLJZ0HPzkEVQDWNzyulwyt0GEmmqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k0Uxg2zULNrvAeuQfNtRdr0/Biivoii9eUXyTxbxVlGyPh7hicFdLgCEIRqH3TcSl 5SZkBgA1H1IBXE7NVxzik0G251fdNGsCbMJHkc4sU/YCqMcY1LOr/FY/ZcXw0QqeNR D32WfSRsuFSPylnKdlSmT3Hpgyv5tzrGl55ZY32Q= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Robert Hancock , Lee Jones , Sasha Levin Subject: [PATCH AUTOSEL 5.2 099/171] mfd: core: Set fwnode for created devices Date: Thu, 18 Jul 2019 23:55:30 -0400 Message-Id: <20190719035643.14300-99-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190719035643.14300-1-sashal@kernel.org> References: <20190719035643.14300-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robert Hancock [ 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 dbf684c4ebfb..23276a80e3b4 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -175,6 +175,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