include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / usb / wusbcore / wa-nep.c
index 3f542990c73f8749c946c513e19645aa31511f73..f67f7f1e6df9502680868d2bfa5e0493df0cf36d 100644 (file)
@@ -51,7 +51,8 @@
  */
 #include <linux/workqueue.h>
 #include <linux/ctype.h>
-#include <linux/uwb/debug.h>
+#include <linux/slab.h>
+
 #include "wa-hc.h"
 #include "wusbhc.h"
 
@@ -139,13 +140,10 @@ static void wa_notif_dispatch(struct work_struct *ws)
                        /* FIXME: unimplemented WA NOTIFs */
                        /* fallthru */
                default:
-                       if (printk_ratelimit()) {
-                               dev_err(dev, "HWA: unknown notification 0x%x, "
-                                       "%zu bytes; discarding\n",
-                                       notif_hdr->bNotifyType,
-                                       (size_t)notif_hdr->bLength);
-                               dump_bytes(dev, notif_hdr, 16);
-                       }
+                       dev_err(dev, "HWA: unknown notification 0x%x, "
+                               "%zu bytes; discarding\n",
+                               notif_hdr->bNotifyType,
+                               (size_t)notif_hdr->bLength);
                        break;
                }
        }
@@ -160,12 +158,9 @@ out:
         * discard the data, as this should not happen.
         */
 exhausted_buffer:
-       if (!printk_ratelimit())
-               goto out;
        dev_warn(dev, "HWA: device sent short notification, "
                 "%d bytes missing; discarding %d bytes.\n",
                 missing, (int)size);
-       dump_bytes(dev, itr, size);
        goto out;
 }