summaryrefslogtreecommitdiff
path: root/drivers/net/pcs
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-06-02 19:20:16 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-03 13:30:43 -0700
commit8e2bb9569942f9cb2ef816dbf66fbf3e8d722720 (patch)
tree2ea83dfbe149a83dbad7688bf069d1b5e067f851 /drivers/net/pcs
parent14b517cb62d6efc8866f176c922de03dfe1564f3 (diff)
net: pcs: xpcs: export xpcs_probe
Similar to the other recently functions, it is not necessary for xpcs_probe to be a function pointer, so export it so that it can be called directly. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcs')
-rw-r--r--drivers/net/pcs/pcs-xpcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pcs/pcs-xpcs.c b/drivers/net/pcs/pcs-xpcs.c
index 2f2ffab855aa..7f51eb4bbaa4 100644
--- a/drivers/net/pcs/pcs-xpcs.c
+++ b/drivers/net/pcs/pcs-xpcs.c
@@ -1005,7 +1005,7 @@ static const struct xpcs_id xpcs_id_list[] = {
},
};
-static int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface)
+int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface)
{
u32 xpcs_id = xpcs_get_id(xpcs);
int i;
@@ -1028,12 +1028,12 @@ static int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface)
return -ENODEV;
}
+EXPORT_SYMBOL_GPL(xpcs_probe);
static struct mdio_xpcs_ops xpcs_ops = {
.config = xpcs_config,
.get_state = xpcs_get_state,
.link_up = xpcs_link_up,
- .probe = xpcs_probe,
};
struct mdio_xpcs_ops *mdio_xpcs_get_ops(void)