Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp192379lfo; Tue, 17 May 2022 21:55:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoZRgiMbzO4AN7srD+LP+R1yMO/pV8nsWB1ITrPUuv3Y3O7GDd7a60OVH+Vo6ui2QhaaZs X-Received: by 2002:a17:902:e543:b0:161:84e5:7a46 with SMTP id n3-20020a170902e54300b0016184e57a46mr11835480plf.20.1652849726670; Tue, 17 May 2022 21:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652849726; cv=none; d=google.com; s=arc-20160816; b=LEM4WuMaZR2VtOCBrLTY7wc1HqOu7hPMNvk8Tf+7qDh98KoH0f6ViW4FljjNWkSt3k hcckqKfILz+g4UNwOQWyNGFLHtEVVMYQCjPKPAlb8pUnCyqwXgXlVz7mD6IGbTrkwShY cit8HWTuGqJO4zltHD8axPPBkcWxSwRBlywMjRJ8Bdnm8BNNvFeDTqAUJm6FZVW5TtVx C0B3jSTVM3+e/c8en2k35lR5omL7c0FAXFNS1hWMNTAk/A3oi4mT2cpICNMrIXtznpBX BLgARP6L6wku5nEM8MPXbeuiGLz8mafvwIFCG8LxRDO+krjBZkGJwboZxPSQn+kBP5s2 m4gg== 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; bh=Z+v7OeDU19Dx5OqvJml/LWDpfKUkpKDzMruV+njhM6U=; b=TQlle6qZuM1EdyxZb48N9e61bfXiAjHYg1XSyZN8J0v9JatLuOafy9PqR9W8xotm/B r03GsiFD8B7mZ2TcY0Slb5LKkSyU73716tqxj/nkNj2uoMk23CAG+4YrjEIq8jxgU0ls pz59QW+sCSYOYLsmbycgicQWcCSBHdRzq83JmYgdAHCkvTRWgeX2Tmer8nviPXLquq/9 CZO/2Kit8/oyLK+j6AiJuGDTUzCJPDWu01v37OANQ+VbzjGuHO80h2qaL+GHhO+bvUT8 UItV1I+uFRKurJVMH0YMR45rXbsP2OM9kzvDzDml9q9+CZN/UcFI3hk9yjBs94BLdSRZ 2tnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BFLBvUFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s3-20020a170902ea0300b00153b2d164fbsi1688506plg.259.2022.05.17.21.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BFLBvUFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3583213F926; Tue, 17 May 2022 21:03:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245736AbiEQKNx (ORCPT + 99 others); Tue, 17 May 2022 06:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343767AbiEQKMo (ORCPT ); Tue, 17 May 2022 06:12:44 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 554891C92C; Tue, 17 May 2022 03:12:01 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id a191so16538074pge.2; Tue, 17 May 2022 03:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z+v7OeDU19Dx5OqvJml/LWDpfKUkpKDzMruV+njhM6U=; b=BFLBvUFdFjhCmJ5PZQyLahqwcrEeVsJb8I2uszKR2JGRTbHVGU484f+Exmvt8pR8aA r0/HSIuQ+pDcBeQt3nOxWqUnXgUXDwwWFjQlU9Ex23B5cjQzUrmmWn9jtTtKWrK7Xehs OCg5LB5iCu7aGmidRUaZWww+ZJRYDKxfvXnXOqoD3jwXU9W6AMZ7iWLfwN3tsBEMMWZx cNqEnq+TKjaAdtV32WvdnOqEWPqXMTAhaLi0mH1VnevbTngCe0O+mxEyMuqiQZ1uDX4i IsuyUvPtbt/1n4W1rTsk9o2rk0P+fLafpHKP31DEGBGk4PdffXw093rlfuLhhYEizbfK yu8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z+v7OeDU19Dx5OqvJml/LWDpfKUkpKDzMruV+njhM6U=; b=oGZ1jsiHFAcnKLo0dotX4UzzL7XdRrrTiaskXjt5lNwDrST07T5Mb/taXx/yiOXRMi 88Kz+69x321aPvCy0cNrzrVOlr4thxCz0o1Saf4YYGJGRolVcaQmF9VH9+2uol516coE QSD6P9VD1HNaTThY+tJXqjteU7sPE8pgSsXRaVobVrf0bFScSDdevEKwPxnvZPaX5VlZ bQL1HWM7MPwpqzJveQkwDgsbfiOnKHqCij29G213sCvwnI6d4ja4G0Iox8lZpI4QGkl5 pZVjuOUt1/55iKKO3erceULExmi8/b/ufuLRhuwFk28JbSyIndALWYy8tACCT+BHlxdR WY5Q== X-Gm-Message-State: AOAM533+vFMxRYZec2Jf2tRg97DFCGk5ohBlIs0zf6ETRbE8BsZ8dTEW XvLEg41V/b1asIE2jrlyqw== X-Received: by 2002:a05:6a00:1c5c:b0:505:7469:134a with SMTP id s28-20020a056a001c5c00b005057469134amr21921186pfw.16.1652782321136; Tue, 17 May 2022 03:12:01 -0700 (PDT) Received: from localhost (220-133-130-217.hinet-ip.hinet.net. [220.133.130.217]) by smtp.gmail.com with ESMTPSA id t12-20020a1709027fcc00b0015e8d4eb234sm8598283plb.126.2022.05.17.03.12.00 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 May 2022 03:12:00 -0700 (PDT) From: Tyrone Ting To: avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, wsa@kernel.org, andriy.shevchenko@linux.intel.com, jarkko.nikula@linux.intel.com, semen.protsenko@linaro.org, rafal@milecki.pl, sven@svenpeter.dev, jsd@semihalf.com, jie.deng@intel.com, lukas.bulwahn@gmail.com, arnd@arndb.de, olof@lixom.net, warp5tw@gmail.com, tali.perry@nuvoton.com, Avi.Fishman@nuvoton.com, tomer.maimon@nuvoton.com, KWLIU@nuvoton.com, JJLIU0@nuvoton.com, kfting@nuvoton.com Cc: openbmc@lists.ozlabs.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 03/10] i2c: npcm: Remove unused variable clk_regmap Date: Tue, 17 May 2022 18:11:35 +0800 Message-Id: <20220517101142.28421-4-warp5tw@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220517101142.28421-1-warp5tw@gmail.com> References: <20220517101142.28421-1-warp5tw@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tali Perry Remove unused variable clk_regmap. Fixes: 56a1485b102e ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver") Signed-off-by: Tali Perry Signed-off-by: Tyrone Ting Reviewed-by: Jonathan Neuschäfer --- drivers/i2c/busses/i2c-npcm7xx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm7xx.c index de4e5f2f3e5a..550e4a4d1e01 100644 --- a/drivers/i2c/busses/i2c-npcm7xx.c +++ b/drivers/i2c/busses/i2c-npcm7xx.c @@ -2231,7 +2231,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; static struct regmap *gcr_regmap; - static struct regmap *clk_regmap; struct i2c_adapter *adap; struct npcm_i2c *bus; struct clk *i2c_clk; @@ -2259,10 +2258,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev) return PTR_ERR(gcr_regmap); regmap_write(gcr_regmap, NPCM_I2CSEGCTL, NPCM_I2CSEGCTL_INIT_VAL); - clk_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-clk"); - if (IS_ERR(clk_regmap)) - return PTR_ERR(clk_regmap); - bus->reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(bus->reg)) return PTR_ERR(bus->reg); -- 2.17.1