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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DDA9C49EA4 for ; Sun, 13 Jun 2021 18:36:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E897561245 for ; Sun, 13 Jun 2021 18:36:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbhFMSiB (ORCPT ); Sun, 13 Jun 2021 14:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbhFMSh6 (ORCPT ); Sun, 13 Jun 2021 14:37:58 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD783C061766 for ; Sun, 13 Jun 2021 11:35:41 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id a1so17164788lfr.12 for ; Sun, 13 Jun 2021 11:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f9hctqrMSqIha3ZKHMtzDyMGNIbR3Ixgz4KlWzWlWOg=; b=mzmjIBp+lxMz6Dtk6NDYmJ10qhlBWdSQ1+wc0DHFyaKpM5qw1LqUADjP4+hBAygOt6 8oI1gUCQ3dYB70FSwRPlYPtXO+oAZk8T+eVajuzVbZMaypUx+oORW0AEGQRjh0qlbqCI gfAApUuCD8amT1WLio5DETbrcj3zEulRuhj15RgWb8jX3orviYYLU9Lz9OjVQIoMAWh7 F5VYfhlFeF3moGyM+9IUrNVDNVviV3sQ8Jj2QZDZ4n88XVReok6ai7M5c4+JFAOWOrFK W+KpkTDuokG8ohc4WCqPKNJ+iZIGIZ+g+cSz4x/+HlN4WkQRL0H6J3UcTYkDUapC8DAf HwbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f9hctqrMSqIha3ZKHMtzDyMGNIbR3Ixgz4KlWzWlWOg=; b=UPm6F/DCU765a9vFl5Ause+E7tn4BhkjPgqOhW73THrACAUiPb4U4XzP/trPCxv9zt PoccnoOPWkU70QUy3+63JS1Ncl/506iuHfH35Xw6QdHeF3vo/YhinujJzRDUQoa7Wcyr G3evlQO01aji6qmIKNdKdgwqfRX9QAXs2ktSZeAKmNxuAsi9YWuDqX1Jmm7npHgtDOmk yR+fpL53wvatiIf1mLdviw3D0RUTrNiGXZgcpTTJJ5KBbJYyyVf4WTNyAdm9Y7jGseuT ZIeChC660EsdZBhAQORyRKQwYym3tTiJ3rfFjw1sdFJTnMZ4pn9QRuxRc2wjkq4khP03 UYiA== X-Gm-Message-State: AOAM531WNuwIA+5ncgIhvNC4s3Y0KhhiGP5I8muHax0uPhOZmEwAe031 o9zj2K+rwztQ5j4ZSqKlvGpEEfu6ehRfmohO X-Google-Smtp-Source: ABdhPJzS7H/tNvsCe0/darfMH9xo7jB3uQfLNNWbuc1ZOHYIKQwRsfx3mEDL37rOj8fynJSCIvI31A== X-Received: by 2002:a19:dc02:: with SMTP id t2mr9560004lfg.261.1623609340068; Sun, 13 Jun 2021 11:35:40 -0700 (PDT) Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id e12sm904984lfs.157.2021.06.13.11.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 11:35:39 -0700 (PDT) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, linux@armlinux.org.uk, jaz@semihalf.com, gjb@semihalf.com, upstream@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, jon@solid-run.com, Marcin Wojtas Subject: [net-next: PATCH 3/3] net: mvpp2: remove unused 'has_phy' field Date: Sun, 13 Jun 2021 20:35:20 +0200 Message-Id: <20210613183520.2247415-4-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210613183520.2247415-1-mw@semihalf.com> References: <20210613183520.2247415-1-mw@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'has_phy' field from struct mvpp2_port is no longer used. Remove it. Signed-off-by: Marcin Wojtas --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 3 --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h index 4a61c90003b5..b9fbc9f000f2 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h @@ -1197,9 +1197,6 @@ struct mvpp2_port { /* Firmware node associated to the port */ struct fwnode_handle *fwnode; - /* Is a PHY always connected to the port */ - bool has_phy; - /* Per-port registers' base address */ void __iomem *base; void __iomem *stats_base; diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index ca1f0464e746..c87752999485 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -6790,7 +6790,6 @@ static int mvpp2_port_probe(struct platform_device *pdev, port = netdev_priv(dev); port->dev = dev; port->fwnode = port_fwnode; - port->has_phy = !!of_find_property(port_node, "phy", NULL); port->ntxqs = ntxqs; port->nrxqs = nrxqs; port->priv = priv; -- 2.29.0