linux/drivers/net/ethernet/freescale
Shawn Guo 43af940c54 net/fec: fix the use of pdev->id
The pdev->id is used in several places for different purpose.  All
these uses assume it's always the id of fec device which is >= 0.
However this is only true for non-DT case.  When DT plays, pdev->id
is always -1, which will break these pdev->id users.

Instead of fixing all these users one by one, this patch introduces
a new member 'dev_id' to 'struct fec_enet_private' for holding the
correct fec device id, and replaces all the existing uses of pdev->id
with this dev_id.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-07 13:29:04 -05:00
..
fs_enet
fec_mpc52xx_phy.c
fec_mpc52xx.c
fec_mpc52xx.h
fec.c net/fec: fix the use of pdev->id 2011-12-07 13:29:04 -05:00
fec.h
fsl_pq_mdio.c
fsl_pq_mdio.h
gianfar_ethtool.c
gianfar_ptp.c
gianfar_sysfs.c
gianfar.c
gianfar.h
Kconfig net: fec: Select the FEC driver by default for i.MX SoCs 2011-11-30 17:07:21 -05:00
Makefile
ucc_geth_ethtool.c
ucc_geth.c drivers/net: Add module.h to drivers who were implicitly using it 2011-10-31 19:31:07 -04:00
ucc_geth.h