From patchwork Wed Aug 18 15:44:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair X-Patchwork-Id: 500624 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00, DATE_IN_PAST_12_24, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52663C4338F for ; Thu, 19 Aug 2021 11:16:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AF6D61100 for ; Thu, 19 Aug 2021 11:16:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238675AbhHSLQp (ORCPT ); Thu, 19 Aug 2021 07:16:45 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:42519 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238577AbhHSLQl (ORCPT ); Thu, 19 Aug 2021 07:16:41 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6EC295C00C9; Thu, 19 Aug 2021 07:16:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 19 Aug 2021 07:16:05 -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=fm1; bh=e6he+/Ctx/CNm IsbU2QMgTzDIo771ajT2nYYxlA1LyM=; b=FPPsQWSaWd0pXA2DuBwOLiW6FFbP/ tLXSeQeulECpS9Vqh62ExYqX7gW3mg4r3YR1Lbi4h5XXUdjDpEucwBTd46FJjDUU TE1R6EOOUBZHXVpp+Y0r8gf9TQ4+or33A2vRuUASICtbL+qp0mcNm6gJ5UMVYFgr O9QVweyjDKQqltEq53UexZLGsPU7ezhQfiOq2Dr/eTwXmoRBdgAxVJhCseakyVjI FYYzUEGDpHc/IEI3OFSSzZLWiqTDX8jQMm/rBNh5Wbz0yKAumzsk97fuxVGIsZeO mmyFTsQ6g14gUc9A4Tsai63g7blTdni/b1doNrT3XjqSE3juXGSiGXs4w== 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= fm3; bh=e6he+/Ctx/CNmIsbU2QMgTzDIo771ajT2nYYxlA1LyM=; b=HNiJ0D8C adTE4Hg3ErKly7OUJkM71+NxT0tSQLtc4DECSHtCNEjOx2jLEZL82iYJfrlbFKHX aBcZx3xDP+ZW8aEuhkLg4DN569E7LpQRlCIpcdKFBMvyqF3Y3QCeez6RTALHJNSO nuo4LaNVah71hAfucjT1AeVg6zfFWS+z1E3SNesCRSxJ31eqYmidq4hF701ZnE+n wgDE16ncG4m62jISSv8u6Ja7wpnX/AUUDbRFD0GG7hgGT+ErTooZ7QzNNxMaRv6K EXOphBB/9ZsIcM26Uc2X0Ij1ZyN2CNewIuU2VQtwAO/fL5+7T2rK+tHnZtZjgQdn 4ClAjdzNNcDKCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleejgdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepgeegtdetjeekge eguefgheeuvedugedvteejveeiudegvddtkeffkeehtdetudfhnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhish htrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Aug 2021 07:16:01 -0400 (EDT) From: Alistair Francis To: lee.jones@linaro.org, robh+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v11 04/10] regulator: sy7636a: Remove requirement on sy7636a mfd Date: Thu, 19 Aug 2021 01:44:43 +1000 Message-Id: <20210818154449.1037-5-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210818154449.1037-1-alistair@alistair23.me> References: <20210818154449.1037-1-alistair@alistair23.me> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 24ce9a17ab4f..54ba141d114a 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -1179,7 +1179,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;