Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4174640rwi; Mon, 17 Oct 2022 02:33:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wQPE9DkAVDjFJy1itIWRKCcUs0qqTm91ahOuPvz9VdzJSgJVvOeUciCbpHDitSestYaFh X-Received: by 2002:a17:902:ecc5:b0:184:ee98:4d79 with SMTP id a5-20020a170902ecc500b00184ee984d79mr11291640plh.112.1665999201002; Mon, 17 Oct 2022 02:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665999200; cv=none; d=google.com; s=arc-20160816; b=h1p8+WHcfVBiPC1zL2CYdHneddwhNdztyFOQ+ell/uaNwyvn9qrA3qMIjzce/kfzt1 5GR7sHPiDJpI+4cnN9M37A97pohSKs3VW2cQLl6rnKWHVVjo2YFX2KYQIdJBF5i+hojt uBnP2v8mwuhGma/LEYFnVeBBVdeLs5dLdj8L7p8ow/OH4gPnbV5bvCM6ijtSniArY2XX lbznENy4YeJY20eBOwDayf917lErxWC0+bnQB1VpGspWniF5cMw9Y1VLwGEqTq5za/SC 6ipYnrqV5tTaCVVQ6SkUTCvnYIk4gkcxk9nt6eXOgCcrPjWM2hptZwy9nXzWUtOwlcrp EciQ== 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 :message-id:date:subject:cc:to:from; bh=O7YT/sHO7oT13KerXHKUPOmv3vrJ9ExoyGQMULt8EFk=; b=KeLgHCspSfDMXTNvSFy6FGl+OsP2azaH+8mAaeZfRimQi1oMJ2MAb4CBsmHkD5rS5g bCtVy+rrQiqYCkCMtxNOitIro6UzZve2V9B+MzlO/MeFib2zumaxjbOJ5YVSifale4zw 3kNoncB4WjFHGynBl1YZJD++TH2/RLuunGiBi6gooPMK5IPY5PTWkwi7S1s6mlIdsoUW jF4R91skpsUeANFonbxen0wHfZAzzfXAkFshuMLYWA8ncsXQ5OQekrx9YUPwfpCayl/d +kHMOls8355L27bIM1pAJk/1Ueb1fVlkwkAujQHkrmpNtazcc/sd9Ur6rV5o/xlMU07r SPQw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a170902e81200b00172cb948c68si13445085plg.227.2022.10.17.02.33.08; Mon, 17 Oct 2022 02:33:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231172AbiJQJWn (ORCPT + 99 others); Mon, 17 Oct 2022 05:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231248AbiJQJWS (ORCPT ); Mon, 17 Oct 2022 05:22:18 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC96F20BFD; Mon, 17 Oct 2022 02:22:11 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VSLPPPc_1665998521; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSLPPPc_1665998521) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 17:22:09 +0800 From: Jiapeng Chong To: conor.dooley@microchip.com Cc: daire.mcnamara@microchip.com, broonie@kernel.org, linux-riscv@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] spi: microchip-core: Remove the unused function mchp_corespi_enable() Date: Mon, 17 Oct 2022 17:21:41 +0800 Message-Id: <20221017092141.9789-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 The function mchp_corespi_enable() is defined in the spi-microchip-core.c file, but not called elsewhere, so delete this unused function. drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2418 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/spi/spi-microchip-core.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c index d352844c798c..aeaa1da88f39 100644 --- a/drivers/spi/spi-microchip-core.c +++ b/drivers/spi/spi-microchip-core.c @@ -119,15 +119,6 @@ static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int reg writel(val, spi->regs + reg); } -static inline void mchp_corespi_enable(struct mchp_corespi *spi) -{ - u32 control = mchp_corespi_read(spi, REG_CONTROL); - - control |= CONTROL_ENABLE; - - mchp_corespi_write(spi, REG_CONTROL, control); -} - static inline void mchp_corespi_disable(struct mchp_corespi *spi) { u32 control = mchp_corespi_read(spi, REG_CONTROL); -- 2.20.1.7.g153144c