summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-01-28 12:06:48 (GMT)
committerHonghua Yin <Hong-Hua.Yin@freescale.com>2015-03-17 06:49:17 (GMT)
commitf8864e46f166436d8a49a51681a95b7122138ca4 (patch)
tree6f1c7426297ca8a39ca1be43a5eeb56b4c91270a
parent9ed53b088f8ab7f248e05edeedb1b59bcdff561d (diff)
downloadlinux-fsl-qoriq-f8864e46f166436d8a49a51681a95b7122138ca4.tar.xz
net: gianfar: remove the unneeded check of disabled device
Since commit cd1e65044d44 ("of/device: Don't register disabled devices"), the disabled device will not be registered at all. So we don't need to do the check again in the platform device driver. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Change-Id: I3a851a9b6eb649a1fa9694970c6aa34d11f76fda Reviewed-on: http://git.am.freescale.net:8181/32701 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
-rw-r--r--drivers/net/ethernet/freescale/gianfar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c
index b186544..23ac2d3 100644
--- a/drivers/net/ethernet/freescale/gianfar.c
+++ b/drivers/net/ethernet/freescale/gianfar.c
@@ -800,7 +800,7 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev)
unsigned int num_tx_qs, num_rx_qs;
unsigned short mode, poll_mode;
- if (!np || !of_device_is_available(np))
+ if (!np)
return -ENODEV;
if (of_device_is_compatible(np, "fsl,etsec2")) {