From patchwork Mon Oct 17 09:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 3333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1349341wrs; Mon, 17 Oct 2022 02:23:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FOwxt+skIjAM3gACscBsBw9MVyQjfuu0iJf5ERV+dheQHqD22BCdDH6NyjTEab4m/kL4X X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:630e with SMTP id b12-20020a056a00114c00b005282c7a630emr11561871pfm.86.1665998628057; Mon, 17 Oct 2022 02:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665998627; cv=none; d=google.com; s=arc-20160816; b=RWIkilrmkQmzXcr7zbyGPJYJQa92FEPwrEKCPQJgbNi0QYxhPgu36Dh9wMwSqfkW5n 9QAKy8TnSmMxhIIoLgh49V6AelH+0jfK+5TYVHRuJlctHVjGBWHLrLvL9geo3qI+gP+K PC9e5tWYANcNRLZhlYkcx2mFw58v6dWyd62+PVKGEjLlSHVlkj03wuDjYFUrlPrxrcbx 9Aemp3knehL95nIVWJLdXrgNbvZ3iiu+kQBqj4g1PWVVQRCc1pyLkf858+xQoBzAq9xf bUPbUN1RbBxaZw5gJ0FQLKRwkHUiybM9oyIU7cVlPVODa7Y6LimhBxy/0xVY7hDb07H7 j/HA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l190-20020a6388c7000000b0046b2ea057e6si8486904pgd.608.2022.10.17.02.23.33; Mon, 17 Oct 2022 02:23:47 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746926177375663937?= X-GMAIL-MSGID: =?utf-8?q?1746926177375663937?= 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 Reviewed-by: Conor Dooley --- 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);