aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fsl_pq_mdio.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2014-08-07 17:48:25 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-07 19:02:59 -0400
commitf1f02fa4f15bc682814c71fe05c6b76e5f5fba80 (patch)
tree52c27a3d39fbc50b08f94d9c2c420042b89ba657 /drivers/net/ethernet/freescale/fsl_pq_mdio.c
parentfa310789a488a8ca873a117d6d625368def71fb7 (diff)
net: ucc_geth: make probe consistently acquire a reference to the phy node
When the driver attaches to a device that has a phy handle the probe routine returns with a reference to that node. This reference is correctly dropped in the error path and the remove function. In the fixed phy case however no reference is acquired and so the error path might drop a reference the driver isn't holding. Fix that by getting a reference to the MAC. Fixes: 87009814cdbb ("ucc_geth: use the new fixed PHY helpers") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fsl_pq_mdio.c')
0 files changed, 0 insertions, 0 deletions