net: Only call halt on a driver that has been init'ed
[platform/kernel/u-boot.git] / net / eth-uclass.c
index e4b4922..fa3f549 100644 (file)
@@ -307,7 +307,7 @@ void eth_halt(void)
        struct eth_device_priv *priv;
 
        current = eth_get_dev();
-       if (!current || !device_active(current))
+       if (!current || !eth_is_active(current))
                return;
 
        eth_get_ops(current)->stop(current);