Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp476372pxb; Thu, 19 Aug 2021 04:17:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9aLnvzu9c4KsPjhL4ADEQTIRPp/kzbSzrtEMLlsYsppBbVHqO53N2id/hw9omlB6ovYtp X-Received: by 2002:a02:7755:: with SMTP id g82mr12193976jac.45.1629371832103; Thu, 19 Aug 2021 04:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629371832; cv=none; d=google.com; s=arc-20160816; b=QGQPzSwqG9k4O8Sn85A2c68gQBDXO2hIMDOxgWu5ehaWB2CGlu9QZ1fi5EHTyaVDNb mjJplcSTiXnW9CzKYkWl7pmCGTLQM9a6TcgjBuMJGQetVT7gJnljFQ4CKOod+BaUTOcZ GsTQghIDRU9QEejjCK6ZrRGP7PuT0uA0xNO+CcxhGNtBU1E2A885gwH2WZxWq+auP3nj sJfocVx8U2ZtB0zJYl+JPMCsrqdAIDXt/4GHfOtSRu2dssOFeqdMlwYtTfJeZZkRrwHO mPLOd1/BQeUuP/JihoiBQA1Y/pbyYIEEVfYWoMCur1IDsW7etcDlvQgLmq1jwCs1fexh 6X/w== 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=e6he+/Ctx/CNmIsbU2QMgTzDIo771ajT2nYYxlA1LyM=; b=NIFYk5W3zltUuEFrAP0rJWU4r10JdiJoUZ66NKDsElMszsmPHzcuAZRpybCQBk9WYt HYVS2+Q02FPe5V+ap+shQoHg/YPJ2J4FSA8slo18K8lRN5Dpe14g1J7qzRTMIX71+oIM 1IG8BdpeSacO6JuRG69vwYNCmAXAXkuhx7awCPKg7/wRq2a5XkUBzWYHyXllYvprTWJv DvParG0EE71GcbRkAIa4oDUUGIVs2dixdWSQBXTd9V2EeOC0Lu4cZLFs0VqoD8sUHIFY KspsdpEHjdIYTWSaYjHl/QRTl2YhGBs1pFrJ/6jRx8dGf/PjsoJmWAXSHXSuNkubsTV1 IQtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm1 header.b=FPPsQWSa; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=HNiJ0D8C; 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 q7si3488979ilu.111.2021.08.19.04.17.01; Thu, 19 Aug 2021 04:17:12 -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=fm1 header.b=FPPsQWSa; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=HNiJ0D8C; 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 S238537AbhHSLQr (ORCPT + 99 others); Thu, 19 Aug 2021 07:16:47 -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 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 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; -- 2.31.1