Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3209811pxb; Sat, 9 Oct 2021 04:53:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMnRefUcdl3jM+tZXKVNgdRLl1kwDivUkm5w/x5c3aaaeDC+581YcoNoK0zjfGrjJ1aiTl X-Received: by 2002:a63:3549:: with SMTP id c70mr9282054pga.179.1633780429358; Sat, 09 Oct 2021 04:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633780429; cv=none; d=google.com; s=arc-20160816; b=jnfye49cWjibcA9ykn/cL7odirviFAWNmIE5pQkky00aPnpvbob/43W1wTWoVRFaBB F015J6PLfrjMo25lgWmhKrWGLTDRtkhU6AwCK6wh8U3vCBkB6xwvHGhM7mDFT0rW0O8b v3LOCEqxR8QIW+ngxUPReVua5NH5FbUL3XJCDS7gxbT0XhJpm23dE5NZAGklqNTjIeA+ Qsd0xORymYUCRATlGLC+VEMdUTu5t1HL+QJSpROvUf3SXT/fty3mCAgEVI3wFPMDKMtv a03kzkLOfk1sJ4h+nEI961fX8IsCFH9Dt4ohTK4TRjBFfii74BkXc2jET+c0E6+oPiDJ m3+A== 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=iRIuh9nSsQSCSEgWGF6CwAd2kNBdK8TdnDrhUz3dltcCAv9vqMLMnsJOFULRw8wk// U0+FVY8V5uZUbnSp/TPEXOt+T2QaHAMZs6VoBhJxuyMauhf7CaZf1c9KdQzbjwRLAzBK tDbR1fGsCUdl2U5PLLq5TsgMh7fO+bN+xuG8cbzIXaTyUzsQjMsO1FzvTq7dlG0z+55S 2M8tC/K2qeCUttbWrJ/kEeRL7w7cwxexempDj4OlHsTOSaOqC1JK0fkhWVxmwXL2WqeO UQ8UPoBX6fIn8P3pDRpx0OhPcztsig8q6exZr5lakeT4mKI1KtN1FRO1bQQtDVFffu7Y YRNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=FBAxtdRD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=H8bCdJSZ; 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 n15si2169055plc.80.2021.10.09.04.53.37; Sat, 09 Oct 2021 04:53:49 -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=FBAxtdRD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=H8bCdJSZ; 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 S244838AbhJILxX (ORCPT + 99 others); Sat, 9 Oct 2021 07:53:23 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:41907 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244813AbhJILxR (ORCPT ); Sat, 9 Oct 2021 07:53:17 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id E6F48580542; Sat, 9 Oct 2021 07:51:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 09 Oct 2021 07:51:19 -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=FBAxtdRDWdUC6Wrt3CIS9wfoL4eLP jBE2lQGcLR8FW1xhwVn+NehfJItFDEg28apzq9+m8jChVAYLAFRshAksw+Ywq9Ci y5qXUQAGgt//lWJFV3+JpEzvNPGfZhVhGJQGxniDMXIlUMjpORPrYpk3QUBKlY4h MsAMB0hXOwnKswxt+eyLcFTgi/S3mP+3PFOx88ATLODrkgarJdiELr/h7MJY/O7r EjG04OJjJZqAkUAenK8yUmSJeEMeK9jkjXm6FbR26evgw67hhwCTRyCFHEyvdGoK DmVwzsZE+5pL1DnsnEYontd/NFehtZPRcncuncnlSFqJNMOslkOIBV+dg== 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=H8bCdJSZ 0eSNuWmv/TL78WVfJLGiaREAV1DcMdHel4f9GspdXXAA4ykJ6Ps9s9qEHqcwuxeB +cWZ345HamflghfqMw/3tbZvioVHIaKhfildOIwp4JPws6JkNN9uFjMdLhQ/5r5o Oa/yfsVSjDXgD3Btxo07vD0vqPh6ddtFNhFpRsIYgmO227+SgkcN5P1EM6CRZJ9l fXVZ4qWW8a1J86ijlv7uMAwjGjQY38DU8wxugNPWvOumMpd/w0EPHyXOhoT5CXw7 dJWMPnhONBn6URSlSsNmaysAPE7+YQStvPcdsHmGrhFdtyoKKLbtBlqV1iF63ReR 00MHPX+oWxVTsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtvddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Oct 2021 07:51:14 -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 v12 04/10] regulator: sy7636a: Remove requirement on sy7636a mfd Date: Sat, 9 Oct 2021 21:50:25 +1000 Message-Id: <20211009115031.18392-7-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211009115031.18392-1-alistair@alistair23.me> References: <20211009115031.18392-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