Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp546311img; Mon, 18 Mar 2019 08:50:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxH7J2nIfaHVIOdpYpOpnP/Z8w+ldNvh6+WkkjdoeX4ZVtxmY+sdC9NQiReyTuawtbfjP0 X-Received: by 2002:a63:d54f:: with SMTP id v15mr18154894pgi.318.1552924247636; Mon, 18 Mar 2019 08:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552924247; cv=none; d=google.com; s=arc-20160816; b=YJ7Puo36QMuU4JbcSa8BLvdLxy2x2pS8MjijyFiWIueDfPWuElFXyypFBKZQACKYa3 CtgfJw7HZX9gnSQmQT3ig1rxUZphAjfL3LsOWXZk0oYurT8xFBg3cZPp3B5vxoV6a5uS kYXoWwZZdB4Lw94cots+q3IvbBQjD2f0AfER0P2RHvhl1xnW7zLlu75MLDpE5m/Y9I0l nq0XHn1SfNm+qphG6CpfU88AqjLUMLOObRnCbOEQbVbNug1PC9seqxzvIfIa1g+1EmuW pg5QH3TKBAmOQ6rDc7aew0egfIY9kAIRrVIyMUtzg+5i5qvjRLUjNZYSmyzHtiGw9mec UyCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=nuHKIv+i2CEXtV6EFBauet+0K9Mff08ACbCximGcB5s=; b=QH+7/4qk2BeYiOTALCAm3pek/mK0XqSdlZ9ZM35SS3MynHFGU5jVBx/u3xtYb8wzrL ZWQClzW2GR2fZJd7AM7vNkpUw7OEee2Bc1LKkjv3KaW6ejLQyFfJ24r7EO4HTdKDTSg1 Im0lv34OQTuweQacrawBfNjWJtvlMNRt0Xs5MA9lotduhyIVgF8cwDTPcfbO6fYXYYd0 R/JZ5HF4VlOCGTGPtzEsWNvIMaDEfVPrnEp3wV/sukj791DD9tySwE0uPYzvkWQebXN3 ITuNFWl3/upm9ZB/7JH6ktghAS4QT4ewBbEw5ZCOO/T0Pjf4xgShZZ4GL9blfkTnwYMr 1ysg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si3519068pgw.161.2019.03.18.08.50.32; Mon, 18 Mar 2019 08:50:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbfCRPtD (ORCPT + 99 others); Mon, 18 Mar 2019 11:49:03 -0400 Received: from sauhun.de ([88.99.104.3]:36870 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727513AbfCRPtB (ORCPT ); Mon, 18 Mar 2019 11:49:01 -0400 Received: from localhost (p54B330C6.dip0.t-ipconnect.de [84.179.48.198]) by pokefinder.org (Postfix) with ESMTPSA id 2220D4A134E; Mon, 18 Mar 2019 16:49:00 +0100 (CET) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Lee Jones , Mark Brown , Support Opensource , Wolfram Sang , Liam Girdwood Subject: [PATCH 6/6] regulator: da9063: platform_data is gone, depend on OF Date: Mon, 18 Mar 2019 16:47:58 +0100 Message-Id: <20190318154759.21978-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> References: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With OF being the only configuration possibility left, depend on it to simplify some code. Signed-off-by: Wolfram Sang --- drivers/regulator/Kconfig | 2 +- drivers/regulator/da9063-regulator.c | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index b7f249ee5e68..6663cd6cb96c 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -256,7 +256,7 @@ config REGULATOR_DA9062 config REGULATOR_DA9063 tristate "Dialog Semiconductor DA9063 regulators" - depends on MFD_DA9063 + depends on MFD_DA9063 && OF help Say y here to support the BUCKs and LDOs regulators found on DA9063 PMICs. diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index c05859ad63d8..2eda8d985756 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c @@ -681,7 +681,6 @@ static const struct regulator_init_data *da9063_get_regulator_initdata( return NULL; } -#ifdef CONFIG_OF static struct of_regulator_match da9063_matches[] = { [DA9063_ID_BCORE1] = { .name = "bcore1" }, [DA9063_ID_BCORE2] = { .name = "bcore2" }, @@ -759,15 +758,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( *da9063_reg_matches = da9063_matches; return pdata; } -#else -static struct da9063_regulators_pdata *da9063_parse_regulators_dt( - struct platform_device *pdev, - struct of_regulator_match **da9063_reg_matches) -{ - *da9063_reg_matches = NULL; - return ERR_PTR(-ENODEV); -} -#endif static int da9063_regulator_probe(struct platform_device *pdev) { -- 2.11.0