Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp764884pxb; Fri, 15 Oct 2021 15:50:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7ZlbNMeqPCq8gpjE2uChOrZKL8z3FhuDVPqcuUSBncpGvQTHG8Yi0Y1UJON3Ss9bzU4f6 X-Received: by 2002:a50:8ade:: with SMTP id k30mr21461607edk.162.1634338213869; Fri, 15 Oct 2021 15:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634338213; cv=none; d=google.com; s=arc-20160816; b=yarCZH7AQYAl5lX6O4ZAn9if1QzXxEwKh+5Odlc0YIa/c+LUenvO0swwKrcOb6EDgf SIchP/jp+3oyB17bdZ49duDXmDt4szHNWEyvglcda/c8mwBOBEm69unrZfAezqzy6gKQ uD0O9MURD55NObIPomuAOGyQV5+9IjLGbjD4nCtoxUekUFUot5Dhu9H+VVe22y5IDMX0 K7nlSbf+8t8mr5eNWSL1bB8dwNSInnE6CBbvHAMVHIiD7YtV5nRAn4aLp+lqgUErUyId /WuhB4PYl/bqk18aD5XPPF+eX1p1b7idK1RdXtD64TluqmnjokjCLWHKPcYUD5Tf8eRH T9Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=VlKu10pGyqFtOYC6n8tkW4+yJlH9Ol1fiFnYlC1VoXk=; b=jn4LHs1SJ8ldFmIHljrboxJvPiZPD12u/ptU/9BI2JYErVULvXnWwympsy5jtO3R/p /GM8T61OFo4+K3gWkIH3cBOrX6WsoRZNe+ak3dKSf50TybljyUGOR/MkFwApZrndTw4S mCsPHjvG6yOw5ATTg5n8bFER7GIPYvWgsi7oS4e8FaFqDVcK3stqOw8fc/KULofoW3va dhHpDxIBselxkp2C0+EPC739SRKRpFUNt2DkodM849rBHVt+/TtH2TNr+hVuMUGZ3paC xqiO6XBfe+97cg8JGggYjCD0gM6sUsF9VQ40scmQJRrxeQRCD3z+98G+NvgDxvyphvVk nwrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b="DH/yr1Ag"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZDIYYqzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s29si9325187edi.373.2021.10.15.15.49.50; Fri, 15 Oct 2021 15:50:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b="DH/yr1Ag"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZDIYYqzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238856AbhJOM2f (ORCPT + 99 others); Fri, 15 Oct 2021 08:28:35 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:37015 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238852AbhJOM2e (ORCPT ); Fri, 15 Oct 2021 08:28:34 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 88DBF580EC5; Fri, 15 Oct 2021 08:26:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 15 Oct 2021 08:26:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=VlKu10pGyqFtO YC6n8tkW4+yJlH9Ol1fiFnYlC1VoXk=; b=DH/yr1AgNO5iEXDyTbqI1RU30MYHU A0lhHMFFKK3erTNafah1MkGmx3xp2U+OWrUtqzI6733GmwR20hE17yWAPnLhrG7y W32yuZkWXXc3tqgAWVAL0oXwTEHRsyjrdQcCYXZuR72cxM+iXA3BDcWh1Gmop0Ho qsvTuw2rWJ+uvO4HGKKQw/hvy7t24d4k8k36/Vvn3sjZENPXo6Ejr8Ecnvaeu7nA I4WRiMe+rNeeKmg4yodiCEXQ7Ck00bIDDwtznJ9WmHA880D0yzLQECrIxiioiV9E 9d34hGQvTPXmhWPZs11HBqVkBU0cZqaFIKhlW8ii5LEs0lbXzbUZCqueQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=VlKu10pGyqFtOYC6n8tkW4+yJlH9Ol1fiFnYlC1VoXk=; b=ZDIYYqzq PXJQOJtaTLRnCCMJtSTjD98HkITAoQ9ke0wHvTWS1ZuPsLmHn+OHCzO43xJFUStA OFuwY7pbKJb+h2xW+1e0dLrjg1iYI99vGP/2qlAWxVUCXesYwj9Tvxa4V0mquP3I 0yFruL6J49FZNBEIPkC+NG6azUIVYSnEUP7gBf70aNHKyjH9IUG7Zj0SQlRYjku/ yXhoLl6Z9cVddgnP7BAw3NjPtISeMN/C4MxdzBFsGM6jdIpVt+X8J5qgx16ahjZF ZdAVBRhqiT8altCiCnXOyzVXqyVE36/UGY7GRWs6MEXYk5ek8BRsjtPLjwyR7Y6O 79vaa/Odhrqxvw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddugedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Oct 2021 08:26:21 -0400 (EDT) From: Alistair Francis To: lee.jones@linaro.org, robh+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, kernel@pengutronix.de Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, linux-imx@nxp.com, amitk@kernel.org, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Alistair Francis Subject: [PATCH v13 4/9] regulator: sy7636a: Remove requirement on sy7636a mfd Date: Fri, 15 Oct 2021 22:25:46 +1000 Message-Id: <20211015122551.38951-5-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211015122551.38951-1-alistair@alistair23.me> References: <20211015122551.38951-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alistair Francis --- drivers/regulator/Kconfig | 1 - drivers/regulator/sy7636a-regulator.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 4fd13b06231f..21077cb14625 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -1199,7 +1199,6 @@ config REGULATOR_STW481X_VMMC config REGULATOR_SY7636A tristate "Silergy SY7636A voltage regulator" - depends on MFD_SY7636A help This driver supports Silergy SY3686A voltage regulator. diff --git a/drivers/regulator/sy7636a-regulator.c b/drivers/regulator/sy7636a-regulator.c index 8360b3947ead..22fddf868e4c 100644 --- a/drivers/regulator/sy7636a-regulator.c +++ b/drivers/regulator/sy7636a-regulator.c @@ -70,7 +70,7 @@ static const struct regulator_desc desc = { static int sy7636a_regulator_probe(struct platform_device *pdev) { - struct regmap *regmap = dev_get_drvdata(pdev->dev.parent); + struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL); struct regulator_config config = { }; struct regulator_dev *rdev; struct gpio_desc *gdp; -- 2.31.1