staging: vt6656: rename MACbShutdown to vnt_mac_shutdown
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 31 May 2014 10:50:37 +0000 (11:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:57:37 +0000 (15:57 -0700)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/mac.c
drivers/staging/vt6656/mac.h
drivers/staging/vt6656/main_usb.c

index 8c73f362801048b002e6e6c24e5bfc27de4ddc45..5ee5376b2d996405aa716522e4f4470333545652 100644 (file)
@@ -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);
 }
index b0e5d495a5aa027abc771cd5215f33903ca46f95..9eee6d7da503d8168909d07acee5989ac225dd26 100644 (file)
@@ -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 *);
index b297f3afb5b4a6c1ae42bfbc7241ff8c66a783e9..11738dc4fb94f7b7d76cd2ed383b411856a550c3 100644 (file)
@@ -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);