summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/mac.h
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-08-18 19:16:30 +0300
committerJakub Kicinski <kuba@kernel.org>2022-08-20 02:35:54 +0300
commit478eb957ced6b1adbea6ffb00036138174585ba1 (patch)
tree1ce80a65a1098032f321fdcecabbedc78d2297e6 /drivers/net/ethernet/freescale/fman/mac.h
parentaae73fde7eb33d407257dceffb7aed0bcdaf247a (diff)
downloadlinux-478eb957ced6b1adbea6ffb00036138174585ba1.tar.xz
net: fman: Get PCS node in per-mac init
This moves the reading of the PCS property out of the generic probe and into the mac-specific initialization function. This reduces the mac-specific jobs done in the top-level probe function. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Acked-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/mac.h')
-rw-r--r--drivers/net/ethernet/freescale/fman/mac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fman/mac.h b/drivers/net/ethernet/freescale/fman/mac.h
index 95f67b4efb61..e4329c7d5001 100644
--- a/drivers/net/ethernet/freescale/fman/mac.h
+++ b/drivers/net/ethernet/freescale/fman/mac.h
@@ -35,7 +35,7 @@ struct mac_device {
bool promisc;
bool allmulti;
- int (*init)(struct mac_device *mac_dev);
+ int (*init)(struct mac_device *mac_dev, struct device_node *mac_node);
int (*enable)(struct fman_mac *mac_dev);
int (*disable)(struct fman_mac *mac_dev);
void (*adjust_link)(struct mac_device *mac_dev);