mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
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>
This commit is contained in:
parent
7866a62104
commit
4b222ca68a
@ -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")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user