net: ucc_geth: fix build failure
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 10 Aug 2014 18:32:05 +0000 (20:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Aug 2014 04:40:15 +0000 (21:40 -0700)
My series to fix the reference counting of dt nodes introduced a build
failure. Fix it.

Fixes: fa310789a488 ("net: ucc_geth: drop acquired references in probe error path and remove")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c

index d6b64e31652720bb1849fd1a45fb9a4c717208c4..3cf0478b3728e51a6ba7e0b1d0e12743f539e016 100644 (file)
@@ -3924,8 +3924,8 @@ static int ucc_geth_remove(struct platform_device* ofdev)
        unregister_netdev(dev);
        free_netdev(dev);
        ucc_geth_memclean(ugeth);
-       of_node_put(ugeth->info->tbi_node);
-       of_node_put(ugeth->info->phy_node);
+       of_node_put(ugeth->ug_info->tbi_node);
+       of_node_put(ugeth->ug_info->phy_node);
 
        return 0;
 }