include: usb: lin_gadget_compat: remove the duplicated defined macros 32/153732/4 accepted/tizen/4.0/unified/20171011.150050 submit/tizen_4.0/20171011.054609 tizen_4.0.IoT.p1_release
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 29 Sep 2017 05:40:33 +0000 (14:40 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 10 Oct 2017 02:21:23 +0000 (02:21 +0000)
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 <jh80.chung@samsung.com>
include/usb/lin_gadget_compat.h

index 5bdcb8d7974beb12651413ae866c50ca2e208954..0330f6e202a931f6f62fbacbd08f04605200f5f8 100644 (file)
 #include <linux/compat.h>
 
 /* 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