OSDN Git Service

net: pcs: xpcs: remove xpcs_create() from public view
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 2 Jun 2023 13:58:45 +0000 (14:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2023 10:26:02 +0000 (11:26 +0100)
There are now no callers of xpcs_create(), so let's remove it from
public view to discourage future direct usage.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcs/pcs-xpcs.c
include/linux/pcs/pcs-xpcs.h

index 1ba2144..23223f0 100644 (file)
@@ -1224,8 +1224,8 @@ static const struct phylink_pcs_ops xpcs_phylink_ops = {
        .pcs_link_up = xpcs_link_up,
 };
 
-struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev,
-                           phy_interface_t interface)
+static struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev,
+                                  phy_interface_t interface)
 {
        struct dw_xpcs *xpcs;
        u32 xpcs_id;
@@ -1273,7 +1273,6 @@ out:
 
        return ERR_PTR(ret);
 }
-EXPORT_SYMBOL_GPL(xpcs_create);
 
 void xpcs_destroy(struct dw_xpcs *xpcs)
 {
index a99972a..914e387 100644 (file)
@@ -35,8 +35,6 @@ int xpcs_do_config(struct dw_xpcs *xpcs, phy_interface_t interface,
 void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces);
 int xpcs_config_eee(struct dw_xpcs *xpcs, int mult_fact_100ns,
                    int enable);
-struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev,
-                           phy_interface_t interface);
 struct dw_xpcs *xpcs_create_mdiodev(struct mii_bus *bus, int addr,
                                    phy_interface_t interface);
 void xpcs_destroy(struct dw_xpcs *xpcs);