diff options
author | Kevin Hao <haokexin@gmail.com> | 2015-01-28 20:06:48 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-29 14:51:11 -0800 |
commit | 4b222ca68a7a24501c1a7b7505512e845799dd65 (patch) | |
tree | 7c2a56ea8eff82fcc6a379693a8711d4a6aa5f79 /drivers | |
parent | 7866a621043fbaca3d7389e9b9f69dd1a2e5a855 (diff) | |
download | linux-4b222ca68a7a24501c1a7b7505512e845799dd65.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index 93ff846e96f1..43df78882e48 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c @@ -764,7 +764,7 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) u32 *tx_queues, *rx_queues; unsigned short mode, poll_mode; - if (!np || !of_device_is_available(np)) + if (!np) return -ENODEV; if (of_device_is_compatible(np, "fsl,etsec2")) { |