aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r--drivers/net/ucc_geth.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 8cc316653a39..ed84182c6828 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -3852,7 +3852,13 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
3852 3852
3853 ugeth_vdbg("%s: IN", __FUNCTION__); 3853 ugeth_vdbg("%s: IN", __FUNCTION__);
3854 3854
3855 prop = of_get_property(np, "device-id", NULL); 3855 prop = of_get_property(np, "cell-index", NULL);
3856 if (!prop) {
3857 prop = of_get_property(np, "device-id", NULL);
3858 if (!prop)
3859 return -ENODEV;
3860 }
3861
3856 ucc_num = *prop - 1; 3862 ucc_num = *prop - 1;
3857 if ((ucc_num < 0) || (ucc_num > 7)) 3863 if ((ucc_num < 0) || (ucc_num > 7))
3858 return -ENODEV; 3864 return -ENODEV;