From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75C52C43217 for ; Sun, 27 Nov 2022 15:29:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B61184F28; Sun, 27 Nov 2022 16:26:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Ll97B+M9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5012C84FD2; Sun, 27 Nov 2022 16:26:08 +0100 (CET) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 716A585006 for ; Sun, 27 Nov 2022 16:26:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ej1-x62d.google.com with SMTP id gu23so2137528ejb.10 for ; Sun, 27 Nov 2022 07:26:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yZrfKEbzS0R0GT69+c9XykOXvcuL4Uk7SC+aygSYrtc=; b=Ll97B+M9Ty8SJiG25hOS5z2QlnwwXbwbezA9ppbr08YQ/vMlShDpx1MT+IbRcmKIYV iZ3vC7z69CkK7V6Dtwjbx7vihoDVYPE7Nlu4U/3TlyPTKW7JoqQCjvLMvwO2/h27FQmm wu6mPKAsGqcz6CdLSUErxkxo5/0XVBKXJCSa0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yZrfKEbzS0R0GT69+c9XykOXvcuL4Uk7SC+aygSYrtc=; b=DHjMbRfjcgdtm5pJ9qxfJTVBMk9UpB6ZDJmynL9qRyI5PzytMqJSSQLj0L+o7EHkDh oLU62JKzNwFtt2RFXU6EhJ3tWwsd7lDFFHMWrkqY9bpNbaDLBNSH3dM/3ObRRzmvx/VN cKvlkNoM7tvWGRf95AnslyD/N87+3lCxKnxsXkqwvsEqoOO7vtZ2xmWUXSLk1QHTpFBa NCwchUh9As47cJZgRbPaeFB4FGn3SEPJS+/qaGbLhqUsRffhWH+YHIZziljLTroQ0uNq hmZDniIzSiY/bKBTXaCi/alfhlN+LW4gp6sF0x6LpDAy0UGK13wcloqEcL1fqyM2d5HS 7M6w== X-Gm-Message-State: ANoB5pmjBcgrz3ucP/FaVpDjFiXFxq9lpyA9O28fa/+apc54MRFpiDMX SbyajG2tKNrkY3DoAez1cWXjs9jHnVCeqg== X-Google-Smtp-Source: AA0mqf7cUxi/RrKGGBNpHTtHf1l78QROPKA0E1hc5OnBQZUkI7dCWoIlu4mfIF8vvygJRUHMXMhb8Q== X-Received: by 2002:a17:906:7215:b0:78d:a7f0:e232 with SMTP id m21-20020a170906721500b0078da7f0e232mr39810540ejk.9.1669562763966; Sun, 27 Nov 2022 07:26:03 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-dc2c-1c0a-ea3e-04dc.res6.spectrum.com. [2603:6081:7b00:6400:dc2c:1c0a:ea3e:4dc]) by smtp.gmail.com with ESMTPSA id tb6-20020a1709078b8600b007b47749838asm3853036ejc.45.2022.11.27.07.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 07:26:03 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 23/41] net: netconsole: Remove non-DM_ETH code Date: Sun, 27 Nov 2022 10:25:18 -0500 Message-Id: <20221127152536.1556469-23-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127152536.1556469-1-trini@konsulko.com> References: <20221119234545.404563-38-trini@konsulko.com> <20221127152536.1556469-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/netconsole.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index cec96c571504..1e52917ff2c3 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -172,11 +172,7 @@ int nc_input_packet(uchar *pkt, struct in_addr src_ip, unsigned dest_port, static void nc_send_packet(const char *buf, int len) { -#ifdef CONFIG_DM_ETH struct udevice *eth; -#else - struct eth_device *eth; -#endif int inited = 0; uchar *pkt; uchar *ether; @@ -298,11 +294,7 @@ static int nc_stdio_getc(struct stdio_dev *dev) static int nc_stdio_tstc(struct stdio_dev *dev) { -#ifdef CONFIG_DM_ETH struct udevice *eth; -#else - struct eth_device *eth; -#endif if (input_recursion) return 0; -- 2.25.1