From patchwork Thu Jan 21 10:41:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 8079981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 342C8BEEE5 for ; Thu, 21 Jan 2016 10:44:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DCD320558 for ; Thu, 21 Jan 2016 10:44:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8BA9C204AF for ; Thu, 21 Jan 2016 10:44:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aMChH-0004b8-2g; Thu, 21 Jan 2016 10:42:35 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aMChD-0004Oy-PL; Thu, 21 Jan 2016 10:42:32 +0000 Received: by mail-wm0-x232.google.com with SMTP id r129so166404131wmr.0; Thu, 21 Jan 2016 02:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZJJMUX7pVL4H490gDT7P+1Oz3k1zRLEql8TfTt42SBA=; b=Gm1/P+v+MPDC8Vx+2vsHjCYJgLt45nSPM+9QtwzUn2mbH6+at9rlBPhrF5v9uTnirX Ip+MtRRlGmDkCxTDKR1SWztp9qnts2YnbqtgnoryvAUTi6DhJXbcNk6KFQVcwdN1BHqK GHhRBHFq3GHy5dQchutSE3lqhCqIoNEFe2bGya7vwjoYPFT37VaSLds4OMgxwCv8kPHy sJZHO4rwOx7KBJFpL33TvL4a+CkTB5dZffF52eN7PaUV1rNO2ZVsidP41IUt5diN6lxm oArXy3kCVLoYc7ByDbjGo1oKdwzif3zkIwd/Lyro9CjC1pTLlr4Ydmloz39POx4baVTo xJ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZJJMUX7pVL4H490gDT7P+1Oz3k1zRLEql8TfTt42SBA=; b=BIWi2XRLWkPIl1rFW+AGGmxr/OynWS1GUQ9DXcfxgzISv6PSl/739N2o60ErulPv2d DMKPuZ39CI4kduOnW4BenS46/R/VPgC/CLRJB16MXggl0fKKLKWcwc17W/GcTub1VPxD PyP7rZ5ei+0oLqEY6SsijbXA1sJYQaMiIUXbdPLHO9cyjGnk5YjCkSMzXqO1bhq0jeuR q4Q3rmCQGgiQgLKtdfJeRDkYAZHkaFOiYNnCfBB/ttVKKvvQTKejNMcM7cTQYDIYYu/E 0/aCZ/n/r/tNICznJDPD+TDoQ9WWchYqfpK5bvfUeNwU6MR0WOGWOTyBvFhVZ7FPs3XG DdYw== X-Gm-Message-State: AG10YOS4F9AghKQk1FirLqh3z5ZcFYsZ0UZGBX0iILOPgDzQ7VPQrUvxngsRPFCIvrIWqw== X-Received: by 10.28.223.134 with SMTP id w128mr8978011wmg.69.1453372930247; Thu, 21 Jan 2016 02:42:10 -0800 (PST) Received: from linux-gy6r.site (142.86.133.37.dynamic.jazztel.es. [37.133.86.142]) by smtp.gmail.com with ESMTPSA id w1sm2325745wmd.2.2016.01.21.02.42.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jan 2016 02:42:09 -0800 (PST) From: Matthias Brugger To: linux-mediatek@lists.infradead.org, s.hauer@pengutronix.de Subject: [PATCH] soc: mediatek: PMIC wrap: Delete unused regmap support Date: Thu, 21 Jan 2016 11:41:59 +0100 Message-Id: <1453372919-15602-1-git-send-email-matthias.bgg@gmail.com> X-Mailer: git-send-email 2.6.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160121_024232_028524_993854FA X-CRM114-Status: GOOD ( 12.81 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: k.kozlowski@samsung.com, linux-kernel@vger.kernel.org, henryc.chen@mediatek.com, flora.fu@mediatek.com, Matthias Brugger , treding@nvidia.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP PMIC wrapper does not use regmap support, although some regmap code slipped into the driver. This patch deletes this code parts. Signed-off-by: Matthias Brugger --- drivers/soc/mediatek/mtk-pmic-wrap.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 105597a..83b22bf 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #define PWRAP_MT8135_BRIDGE_IORD_ARB_EN 0x4 @@ -366,7 +365,6 @@ static struct pmic_wrapper_type pwrap_mt8173 = { struct pmic_wrapper { struct device *dev; void __iomem *base; - struct regmap *regmap; int *regs; enum pwrap_type type; u32 arb_en_all; @@ -475,16 +473,6 @@ static int pwrap_read(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) return 0; } -static int pwrap_regmap_read(void *context, u32 adr, u32 *rdata) -{ - return pwrap_read(context, adr, rdata); -} - -static int pwrap_regmap_write(void *context, u32 adr, u32 wdata) -{ - return pwrap_write(context, adr, wdata); -} - static int pwrap_reset_spislave(struct pmic_wrapper *wrp) { int ret, i; @@ -780,15 +768,6 @@ static irqreturn_t pwrap_interrupt(int irqno, void *dev_id) return IRQ_HANDLED; } -static const struct regmap_config pwrap_regmap_config = { - .reg_bits = 16, - .val_bits = 16, - .reg_stride = 2, - .reg_read = pwrap_regmap_read, - .reg_write = pwrap_regmap_write, - .max_register = 0xffff, -}; - static struct of_device_id of_pwrap_match_tbl[] = { { .compatible = "mediatek,mt8135-pwrap", @@ -904,10 +883,6 @@ static int pwrap_probe(struct platform_device *pdev) if (ret) goto err_out2; - wrp->regmap = devm_regmap_init(wrp->dev, NULL, wrp, &pwrap_regmap_config); - if (IS_ERR(wrp->regmap)) - return PTR_ERR(wrp->regmap); - ret = of_platform_populate(np, NULL, NULL, wrp->dev); if (ret) { dev_dbg(wrp->dev, "failed to create child devices at %s\n",