From: Ajit Khaparde Date: Sun, 29 Nov 2009 17:56:56 +0000 (+0000) Subject: be2net: fix to allow port beacon when device is closed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca66ef500b874de4bf58e05f9d18ccdce64eabbc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git be2net: fix to allow port beacon when device is closed port identification/beaconing is failing if device open has not been done. Fixing it. Signed-off-by: Ajit Khaparde Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index e8f92831021a..9eabed4e3b92 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c @@ -380,9 +380,6 @@ be_phys_id(struct net_device *netdev, u32 data) int status; u32 cur; - if (!netif_running(netdev)) - return 0; - be_cmd_get_beacon_state(adapter, adapter->port_num, &cur); if (cur == BEACON_STATE_ENABLED)