Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5789170iob; Tue, 10 May 2022 03:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwplk5fYR853L2AHIjpXSk9jHh4aBgPgQ9PFaw97U3A+TWFdy+k1bRV/lGuS8lpCjelA2LU X-Received: by 2002:a17:907:3e28:b0:6f4:3900:78f8 with SMTP id hp40-20020a1709073e2800b006f4390078f8mr19483235ejc.736.1652179859499; Tue, 10 May 2022 03:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652179859; cv=none; d=google.com; s=arc-20160816; b=qX+71sOoXuqtSJc7bO6DZfyhs1fDTrhaRko3J23/C6Y1GrPxKEXOUxRqSKBbWFpY/G IWwbKOkNTGpdYuHoI8vsmf7OYy6gKLm7CWPFacZheNLs6aA/U1/yP5urgXe3cEdJUvKf AvLn9UojowGufzrbu/QCeSVK0lIwSYnEQC6IGsQhWJ358+29nwTqiPzKhsZlwBOzAp/b Ss+jbmZZG3b+Hui5rm5Cbuo55q1fOqybTMr4Vr0i52O8th0ANS+wFnkTyrSDNcCnJIPC vqJhTRFKVSWsL5UaecHIPHUgF2jS2AMbAs1bxGnApPXgSsnZ2pUt4G0pIUgnoCn0ebYw wSmw== 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=YU+ACQq6gQmiv69eWKJ1cs7k5gUUfV2jP2s9r+r1/GM=; b=I60IX1eqOYKB1u2ZhvYnjV4iIlD50HeTVcyhbHLkM1Zhw5gH7VwFUxEbrhCMUVZ9up LbBQT4EvHS8gToE/CpvCh1k7th2M/xnXmmdSLkxjDOzAHuPLRaKTIbTj6baplsEQ97iv c+dBFufu0DxPcoogVwFNDwGLOD9lJFYbL5uqxlgv60IDlApuNooKJ9WKHBqdonYoI1pt FTn6mYb0wFz2Smm5qZRJsoPY9NJ0/NjOUp9qmpsshnedjMvIL24/utEl42x5OyUzPr1e G64E54o9TIl9jwDKG2NXlAlONGJy0/inMCAPgRXHlHpG10i0+vQSPG/aqnsfVZ58/AIT fQqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DJjHmuLt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a170906528a00b006f3b69b9db5si15467988ejm.71.2022.05.10.03.50.36; Tue, 10 May 2022 03:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DJjHmuLt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238614AbiEJJVs (ORCPT + 99 others); Tue, 10 May 2022 05:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238581AbiEJJVn (ORCPT ); Tue, 10 May 2022 05:21:43 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79E720CD9C; Tue, 10 May 2022 02:17:46 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id cq17-20020a17090af99100b001dc0386cd8fso1622483pjb.5; Tue, 10 May 2022 02:17:46 -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=YU+ACQq6gQmiv69eWKJ1cs7k5gUUfV2jP2s9r+r1/GM=; b=DJjHmuLtCJJJzNAObnAvbt4EVn2tV1C6HyPbkTNkBkt+u7YzRJWmp+9GkzK+s59HoC EkIuWZF78rmXclmWI+XSTsapLvSGVjtd2Pb5wumz0fMlNRrUMaehVBVDGB64cA3ycNtn RDmzWRi5no2zOxWpkSrc11oogx70fwsvpY/rbPLi+FhLgf8vMaQQ0cJN+GiQaO5yHhMM O1LriYKBTYjLfqlftgL9VZBUJoXUf2GnANNLB/SSsTduJPFJHZlXCRk44Bwf9Jg73os+ CNU26YD0pG51mRoegeS7lAk5X2LW16H4OgRBppkzJlZFI3BmB64jN5BCAz6w0QMf9K6z nIOw== 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=YU+ACQq6gQmiv69eWKJ1cs7k5gUUfV2jP2s9r+r1/GM=; b=xFiD6t/RWTR1/HXZ8vFwNb5RLZCEfsHQBD2a7Qyojsdb3Wxr6z3JGIe93A+I47vQ63 4zA9rY+4kzH6nBtr2QXbq9h8LZhHnrW/FV2I4wfmN4LGkvCSOobafzM48iMCFXJJcI6k zUK0UYicaQFWJi4tEXhwxNCVyVs2fD0ZcFlL6DI3ZwGi20kqMKeVolhm6Ykpsi+jJL2/ T5POYfFsd8ffosvNeQmTPg1D05U3LgAy+7u6Qsauyctv9Sjbe1eKOmtgqWkFsU0mrhoX myS0XNwdoWY+qItXNqE7nsmqC6RPFgDf78ck45NyKZsLMos4Umu7uPXBMO8BHvIrL4xL 8FIA== X-Gm-Message-State: AOAM5326JTZnMg0bOg+2wG7ySTWtS/KhSlonsTaw2jY2+7sIpO8FG1tc OMNMFJoBPe4RSL96QVczlg== X-Received: by 2002:a17:902:d3cb:b0:15b:a002:d80c with SMTP id w11-20020a170902d3cb00b0015ba002d80cmr19822236plb.108.1652174266261; Tue, 10 May 2022 02:17:46 -0700 (PDT) Received: from localhost (2001-b011-7010-358e-c990-a8c9-85a7-1d3e.dynamic-ip6.hinet.net. [2001:b011:7010:358e:c990:a8c9:85a7:1d3e]) by smtp.gmail.com with ESMTPSA id ls6-20020a17090b350600b001dcf9fe5cddsm1317715pjb.38.2022.05.10.02.17.45 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 May 2022 02:17:45 -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@canonical.com, wsa@kernel.org, andriy.shevchenko@linux.intel.com, jarkko.nikula@linux.intel.com, semen.protsenko@linaro.org, sven@svenpeter.dev, jie.deng@intel.com, jsd@semihalf.com, lukas.bulwahn@gmail.com, olof@lixom.net, arnd@arndb.de, 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 v4 3/9] i2c: npcm: Remove unused variable clk_regmap Date: Tue, 10 May 2022 17:16:48 +0800 Message-Id: <20220510091654.8498-4-warp5tw@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220510091654.8498-1-warp5tw@gmail.com> References: <20220510091654.8498-1-warp5tw@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 e6ae11ed2d82..1f92c84317e4 100644 --- a/drivers/i2c/busses/i2c-npcm7xx.c +++ b/drivers/i2c/busses/i2c-npcm7xx.c @@ -2233,7 +2233,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev) struct i2c_adapter *adap; struct clk *i2c_clk; static struct regmap *gcr_regmap; - static struct regmap *clk_regmap; int irq; int ret; struct device_node *np = pdev->dev.of_node; @@ -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