From: Jaehoon Chung Date: Fri, 29 Sep 2017 05:40:33 +0000 (+0900) Subject: include: usb: lin_gadget_compat: remove the duplicated defined macros X-Git-Tag: submit/tizen_4.0/20171011.054609^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F153732%2F4;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git 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 --- 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