From patchwork Mon Apr 25 21:26:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 12826306 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15094C35280 for ; Mon, 25 Apr 2022 22:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236571AbiDYWYw (ORCPT ); Mon, 25 Apr 2022 18:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343611AbiDYVpe (ORCPT ); Mon, 25 Apr 2022 17:45:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8CFD10C88A; Mon, 25 Apr 2022 14:42:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7163B61480; Mon, 25 Apr 2022 21:42:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C289C385A7; Mon, 25 Apr 2022 21:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650922947; bh=nreQfjm+N9qOhwr5Z/uFXcKNU+5eXomO6oZib8laKZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qyGvmkis4NtIMuPisOOwB6nGpLl1CrkC66uKzbOFYEVssd/6RtOk2FkzUifqRL1zi q9+7YfAa38802srg9wLvBixFw9fJUiEIURuTN0UP+VF4zMlkJFGuw9MohFkvxX7xim vugpiJywGHPp+gh1s/DK/u/uA9eNbzlPB779kBBELWlq9mRHE/51g+8rTE6u8fhOcg 7GJZzsfA9k5GZ+//TVujEzlWJsBLvYQwonWDFOs2bTAW9tfDL6/V3NN+rtyNk7oaaM wRxXhSLD6vMQYU8OheTOKOBVj9BCADbg/5AjXUyNICyP/MQ1uDclN0AlEIl8kgoe9k WR0O9pA75GGAg== From: Bjorn Helgaas To: Jakub Kicinski , "David S . Miller" , Paolo Abeni , Chas Williams <3chas3@gmail.com> Cc: linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH 1/2] net: wan: atp: remove unused eeprom_delay() Date: Mon, 25 Apr 2022 16:26:43 -0500 Message-Id: <20220425212644.1659070-2-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425212644.1659070-1-helgaas@kernel.org> References: <20220425212644.1659070-1-helgaas@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Bjorn Helgaas atp.h is included only by atp.c, which does not use eeprom_delay(). Remove the unused definition. Signed-off-by: Bjorn Helgaas --- drivers/net/ethernet/realtek/atp.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/realtek/atp.h b/drivers/net/ethernet/realtek/atp.h index 63f0d2d0e87b..b202184eddd4 100644 --- a/drivers/net/ethernet/realtek/atp.h +++ b/drivers/net/ethernet/realtek/atp.h @@ -255,10 +255,6 @@ static inline void write_word_mode0(short ioaddr, unsigned short value) #define EE_DATA_WRITE 0x01 /* EEPROM chip data in. */ #define EE_DATA_READ 0x08 /* EEPROM chip data out. */ -/* Delay between EEPROM clock transitions. */ -#define eeprom_delay(ticks) \ -do { int _i = 40; while (--_i > 0) { __SLOW_DOWN_IO; } } while (0) - /* The EEPROM commands include the alway-set leading bit. */ #define EE_WRITE_CMD(offset) (((5 << 6) + (offset)) << 17) #define EE_READ(offset) (((6 << 6) + (offset)) << 17)