From patchwork Fri Oct 15 12:25:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12561307 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 76308C433EF for ; Fri, 15 Oct 2021 12:28:37 +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 4461C6108E for ; Fri, 15 Oct 2021 12:28:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4461C6108E 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=05gZbDZtqD2GMT w3QRIB4vFvtvZlA9kRNlIMF5A7zkHJZlNN6rLPvR35eo9tWWed+CM+3Dww3qnq8qwJeIMg5chcz6Z oR66VuAYF5g+ll8fwn0g4WntdZ/KRfunpz1EkbXP/WWrvEx7oUH3JluJMm63iC9m+mtHt/su0B2kz mysQOD5wQtwV7S77CZajDtaO7BWilFz06FM0ACoYpsCmyLecVr7OIhho/l2NRr7BItlkN7/fy1pfu 66O51He6Vk3zxMrIFH2m4wYuc26FSHiyJZ1s98y0k15ba8sFUjre8bPVZU2XQofXZ+Npmzq80n8un IXnnPZ5HU/KOPSdpa3Dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMIf-006sV0-8J; Fri, 15 Oct 2021 12:27:01 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMI8-006sKk-5d for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 12:26:30 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_052628_306266_B6ACB1EF X-CRM114-Status: GOOD ( 11.64 ) 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;