From: Malcolm Priestley Date: Sat, 31 May 2014 10:50:37 +0000 (+0100) Subject: staging: vt6656: rename MACbShutdown to vnt_mac_shutdown X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=aa6907da1f6727711b0d58e24bbc8954d81289d0;p=openwrt%2Fstaging%2Fblogic.git staging: vt6656: rename MACbShutdown to vnt_mac_shutdown Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/mac.c b/drivers/staging/vt6656/mac.c index 8c73f3628010..5ee5376b2d99 100644 --- a/drivers/staging/vt6656/mac.c +++ b/drivers/staging/vt6656/mac.c @@ -69,7 +69,7 @@ void vnt_mac_set_filter(struct vnt_private *priv, u64 mc_filter) * * */ -void MACbShutdown(struct vnt_private *priv) +void vnt_mac_shutdown(struct vnt_private *priv) { vnt_control_out(priv, MESSAGE_TYPE_MACSHUTDOWN, 0, 0, 0, NULL); } diff --git a/drivers/staging/vt6656/mac.h b/drivers/staging/vt6656/mac.h index b0e5d495a5aa..9eee6d7da503 100644 --- a/drivers/staging/vt6656/mac.h +++ b/drivers/staging/vt6656/mac.h @@ -415,7 +415,7 @@ struct vnt_mac_set_key { } __packed; void vnt_mac_set_filter(struct vnt_private *, u64); -void MACbShutdown(struct vnt_private *); +void vnt_mac_shutdown(struct vnt_private *); void MACvSetBBType(struct vnt_private *, u8); void MACvDisableKeyEntry(struct vnt_private *, u8); void MACvSetKeyEntry(struct vnt_private *, u16, u32, u32, u8 *, u8 *); diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index b297f3afb5b4..11738dc4fb94 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -1002,9 +1002,9 @@ static int device_close(struct net_device *dev) for (uu = 0; uu < MAX_KEY_TABLE; uu++) MACvDisableKeyEntry(pDevice,uu); - if ((pDevice->flags & DEVICE_FLAGS_UNPLUG) == false) { - MACbShutdown(pDevice); - } + if ((pDevice->flags & DEVICE_FLAGS_UNPLUG) == false) + vnt_mac_shutdown(pDevice); + netif_stop_queue(pDevice->dev); MP_SET_FLAG(pDevice, fMP_DISCONNECTED); MP_CLEAR_FLAG(pDevice, fMP_POST_WRITES);