From patchwork Sat Oct 9 11:50:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12547601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07F83C433EF for ; Sat, 9 Oct 2021 11:54:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C504E60EE9 for ; Sat, 9 Oct 2021 11:54:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C504E60EE9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Jt2N1zBB0xCFNd8HmGi019BDZbzB6M9ojXoLI7sxmp8=; b=b+dWknB8pd+gaq JGv1DD4ifv5PXmKfOKH0J9YOz5pDLhODRi+81eljX9GVSeWpl2ES10R2Slh3Fm1h4mQDBjW7SQM+v JtNdiB4KYduFVwYWhclQ+C1JE+Oj+gJLK6OOzb7Ojt3Z1Cg8PskqqTAnr51Dbv+R/gfUJDR8dl2Vw mMOtHfkE55MMtj/vtzDB/jTQy0bNb2pKjDK+NoCwFpuTv5TKbfz86/8pKOMu7PhjCh9xx/0Eu+88I ynI350vKjWuuYBAaIl9zAzp6DM5UVn0yscU5BEsyH9VB0d4NxSe/ZBw/gkl66u7P7X7vvX5HuZ0rD YLR6PZB09pGrRIxMGbSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZAu8-005WYY-IA; Sat, 09 Oct 2021 11:52:41 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZAsq-005VvI-Ii for linux-arm-kernel@lists.infradead.org; Sat, 09 Oct 2021 11:51:21 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211009_045120_723186_F32E409F X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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;