mirror of https://gitee.com/openkylin/linux.git
b338ce270e
priv is not instantiated at gfar_of_init() time, when parsing the DT for info on supported HW queues. Before the netdev can be allocated, the number of supported queues must be known. Because the number of supported queues depends on device type, move the compatibility checks before netdev allocation. Local vars are used to hold the operation mode info before netdev allocation. This fixes the null accesses for priv->.., in gfar_of_init. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
fs_enet | ||
Kconfig | ||
Makefile | ||
fec.h | ||
fec_main.c | ||
fec_mpc52xx.c | ||
fec_mpc52xx.h | ||
fec_mpc52xx_phy.c | ||
fec_ptp.c | ||
fsl_pq_mdio.c | ||
gianfar.c | ||
gianfar.h | ||
gianfar_ethtool.c | ||
gianfar_ptp.c | ||
ucc_geth.c | ||
ucc_geth.h | ||
ucc_geth_ethtool.c | ||
xgmac_mdio.c |