]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: ethernet: fs_enet: drop unused phy_info and mii_if_info
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 4 Sep 2024 17:18:18 +0000 (19:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Sep 2024 09:29:04 +0000 (10:29 +0100)
There's no user of the struct phy_info, the 'phy' field and the
mii_if_info in the fs_enet driver, probably dating back when phylib
wasn't as widely used.  Drop these from the driver code.

As the definition for struct mii_if_info is no longer required, drop the
include for linux/mii.h altogether in the driver.

Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/fs_enet/fs_enet.h
drivers/net/ethernet/freescale/fs_enet/mac-fcc.c
drivers/net/ethernet/freescale/fs_enet/mac-fec.c
drivers/net/ethernet/freescale/fs_enet/mac-scc.c

index b320e55dcb81fc00312fdca61dd158e512d7f986..c96a6b9e144530c02926534fca61a38bc5581748 100644 (file)
@@ -26,7 +26,6 @@
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
 #include <linux/spinlock.h>
-#include <linux/mii.h>
 #include <linux/ethtool.h>
 #include <linux/bitops.h>
 #include <linux/fs.h>
index abe4dc97e52a5f83a8df96c6912a3267fe2767a8..ee49749a3202c48b803f190267c3cf55c988f2ee 100644 (file)
@@ -3,7 +3,6 @@
 #define FS_ENET_H
 
 #include <linux/clk.h>
-#include <linux/mii.h>
 #include <linux/netdevice.h>
 #include <linux/types.h>
 #include <linux/list.h>
@@ -92,14 +91,6 @@ struct fs_ops {
        void (*tx_restart)(struct net_device *dev);
 };
 
-struct phy_info {
-       unsigned int id;
-       const char *name;
-       void (*startup) (struct net_device * dev);
-       void (*shutdown) (struct net_device * dev);
-       void (*ack_int) (struct net_device * dev);
-};
-
 /* The FEC stores dest/src/type, data, and checksum for receive packets.
  */
 #define MAX_MTU 1508           /* Allow fullsized pppoe packets over VLAN */
@@ -153,10 +144,7 @@ struct fs_enet_private {
        cbd_t __iomem *cur_rx;
        cbd_t __iomem *cur_tx;
        int tx_free;
-       const struct phy_info *phy;
        u32 msg_enable;
-       struct mii_if_info mii_if;
-       unsigned int last_mii_status;
        int interrupt;
 
        int oldduplex, oldspeed, oldlink;       /* current settings */
index add062928d99a68e702ddfc15d7654a7b5c900fe..159a384813b3bc08ee24a970728097efc1fb6619 100644 (file)
@@ -22,7 +22,6 @@
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
 #include <linux/spinlock.h>
-#include <linux/mii.h>
 #include <linux/ethtool.h>
 #include <linux/bitops.h>
 #include <linux/fs.h>
index f75acb3b358f74e2b4218b01e7b8650f5529c2f3..cf4c49e884bad13fdd5f5261c92e0a46187a55bd 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
 #include <linux/spinlock.h>
-#include <linux/mii.h>
 #include <linux/ethtool.h>
 #include <linux/bitops.h>
 #include <linux/fs.h>
index 29ba0048396b88bd541c4ff0fd601056ae60fea3..6edc9f66ae8363c5c601b9af1cf1764dc6299a9f 100644 (file)
@@ -22,7 +22,6 @@
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
 #include <linux/spinlock.h>
-#include <linux/mii.h>
 #include <linux/ethtool.h>
 #include <linux/bitops.h>
 #include <linux/fs.h>