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 5C17EC43217 for ; Sun, 27 Nov 2022 15:29:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0AEF7851BC; Sun, 27 Nov 2022 16:26:35 +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="EMcgOZU/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BABC884F03; Sun, 27 Nov 2022 16:26:05 +0100 (CET) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (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 A685884508 for ; Sun, 27 Nov 2022 16:26:02 +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-ed1-x52a.google.com with SMTP id e13so12386295edj.7 for ; Sun, 27 Nov 2022 07:26:02 -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=3Kn/gSeRSogVQHdxdUNJn/gIkrhu3UUaxJuzjSOCw6E=; b=EMcgOZU/4eWZkIqq5crvZL5eg0mPJcPsGXcGK+aSIloEPy9Yum+HRM1zBPwq+dBBJu u8iib/Q8NPD0XPpqApuBIJWW4n6B/L85MF/8vJ3+BntYXmcfqYlevNrG2YJh21puNwFc oF5o1h02/X7RwR4bqWl78rNQoNOFndk10Mgn8= 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=3Kn/gSeRSogVQHdxdUNJn/gIkrhu3UUaxJuzjSOCw6E=; b=vfkV6lHyOF7FA2pMItSN6e+TjgjdZyVheJVUBoCDjTnk7HIG+SY0UHhYGl0Hou8ycB /DBgJ1IPttJ3zisOKp2BekHrQui2dP9KcJFNxhwei7UkgQUSA12ir+foEz6HouI6GRCq Pi8GaFybAAUe1FcdJcZA4nofnEPBnT4smQpyuv+ykV1JBNMYYACqIFIA+41MxAqR+O7Z 8z18tKwcJtNc0iRXDCCWWAMRAc2DaZ53HSqXfhRo0WKW9i7gPZHb+0oa6QlL6AkfxVw2 amviEHJKD4HDo5bSCxNFBNQQ7vk4RnAS0ywTeuhvt/Mfv6uN1pAunWrEXv+kfO6KMSRA 86iQ== X-Gm-Message-State: ANoB5pkSGULiQrbxNA0744pbkdiKXKBVy4aKWljlqTOjfxm0LL8OJdqA ce2Fgr/P6cv+lEO+oeOKk2TcWkp5tdoKxQ== X-Google-Smtp-Source: AA0mqf55iebWw4WJZx0tYyMmvj5+d6F66hWn4WZnInd2R1Ju5Yli3CCsS+5jhIH+Xb6sMODb42xb9g== X-Received: by 2002:aa7:c557:0:b0:46b:1704:324a with SMTP id s23-20020aa7c557000000b0046b1704324amr2827949edr.184.1669562761815; Sun, 27 Nov 2022 07:26:01 -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.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 07:26:01 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 21/41] net: mcfmii: Remove non-DM_ETH code Date: Sun, 27 Nov 2022 10:25:16 -0500 Message-Id: <20221127152536.1556469-21-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/mcfmii.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index e2c8f41876e7..48dd558405c5 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -85,11 +85,7 @@ void mii_reset(fec_info_t *info) /* send command to phy using mii, wait for result */ uint mii_send(uint mii_cmd) { -#ifdef CONFIG_DM_ETH struct udevice *dev; -#else - struct eth_device *dev; -#endif fec_info_t *info; volatile FEC_T *ep; uint mii_reply; @@ -97,11 +93,7 @@ uint mii_send(uint mii_cmd) /* retrieve from register structure */ dev = eth_get_dev(); -#ifdef CONFIG_DM_ETH info = dev_get_priv(dev); -#else - info = dev->priv; -#endif ep = (FEC_T *) info->miibase; @@ -202,11 +194,7 @@ int mii_discover_phy(fec_info_t *info) __weak void mii_init(void) { -#ifdef CONFIG_DM_ETH struct udevice *dev; -#else - struct eth_device *dev; -#endif fec_info_t *info; volatile FEC_T *fecp; int miispd = 0, i = 0; @@ -215,11 +203,7 @@ __weak void mii_init(void) /* retrieve from register structure */ dev = eth_get_dev(); -#ifdef CONFIG_DM_ETH info = dev_get_priv(dev); -#else - info = dev->priv; -#endif fecp = (FEC_T *) info->miibase; -- 2.25.1