From 5c630a69347b84e3a46480a1bad826a7059b866c Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 29 Sep 2017 14:40:33 +0900 Subject: [PATCH] include: usb: lin_gadget_compat: remove the duplicated defined macros Some macros are already defined in include/linux/compat.h. Remove the unnecessary defined macros. Partially picked from mainline commit ff94bc40af34 ("mtd, ubi, ubifs: resync with Linux-3.14"). Change-Id: Id5e55f577fddcaf26680c2dec3460776fb0b581c Signed-off-by: Jaehoon Chung --- include/usb/lin_gadget_compat.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/usb/lin_gadget_compat.h b/include/usb/lin_gadget_compat.h index 5bdcb8d79..0330f6e20 100644 --- a/include/usb/lin_gadget_compat.h +++ b/include/usb/lin_gadget_compat.h @@ -26,22 +26,6 @@ #include /* common */ -#define spin_lock_init(...) -#define spin_lock(...) -#define spin_lock_irqsave(lock, flags) do { debug("%lu\n", flags); } while (0) -#define spin_unlock(...) -#define spin_unlock_irqrestore(lock, flags) do {flags = 0; } while (0) -#define disable_irq(...) -#define enable_irq(...) - -#define mutex_init(...) -#define mutex_lock(...) -#define mutex_unlock(...) - -#define GFP_KERNEL 0 - -#define IRQ_HANDLED 1 - #define ENOTSUPP 524 /* Operation is not supported */ #define BITS_PER_BYTE 8 -- 2.34.1