summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-21 11:28:59 +0900
committerTom Rini <trini@konsulko.com>2016-09-23 22:25:43 -0400
commit4982f464203ea51665f6f4133535b7e8bfe98994 (patch)
treeaabc4245981c6a70a2dfbfd2cc38d1fc626ab7f1
parent2c61551b62dbd9df529dc06a412718b22cf02a82 (diff)
downloadu-boot-4982f464203ea51665f6f4133535b7e8bfe98994.tar.gz
u-boot-4982f464203ea51665f6f4133535b7e8bfe98994.tar.bz2
u-boot-4982f464203ea51665f6f4133535b7e8bfe98994.zip
Move ENOTSUPP defines to include/linux/errno.h
Collect a couple of duplicated defines into a single place. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--drivers/usb/gadget/rndis.c2
-rw-r--r--include/linux/compat.h2
-rw-r--r--include/linux/errno.h2
-rw-r--r--include/usb/lin_gadget_compat.h2
4 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index 42510a0033..844a0c7236 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -41,8 +41,6 @@
#define ETH_ZLEN 60 /* Min. octets in frame sans FCS */
#define ETH_DATA_LEN 1500 /* Max. octets in payload */
#define ETH_FRAME_LEN PKTSIZE_ALIGN /* Max. octets in frame sans FCS */
-#define ENOTSUPP 524 /* Operation is not supported */
-
/*
* The driver for your USB chip needs to support ep0 OUT to work with
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 7236b8d0c3..c7fd649f5e 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -151,8 +151,6 @@ typedef unsigned long sector_t;
typedef unsigned long blkcnt_t;
#endif
-#define ENOTSUPP 524 /* Operation is not supported */
-
/* module */
#define THIS_MODULE 0
#define try_module_get(...) 1
diff --git a/include/linux/errno.h b/include/linux/errno.h
index 1a7a0b9c95..f3461b412b 100644
--- a/include/linux/errno.h
+++ b/include/linux/errno.h
@@ -128,4 +128,6 @@
#define ENOMEDIUM 123 /* No medium found */
#define EMEDIUMTYPE 124 /* Wrong medium type */
+#define ENOTSUPP 524 /* Operation is not supported */
+
#endif
diff --git a/include/usb/lin_gadget_compat.h b/include/usb/lin_gadget_compat.h
index 29fb166934..4a01585f80 100644
--- a/include/usb/lin_gadget_compat.h
+++ b/include/usb/lin_gadget_compat.h
@@ -13,8 +13,6 @@
#include <linux/compat.h>
/* common */
-#define ENOTSUPP 524 /* Operation is not supported */
-
#define BITS_PER_BYTE 8
#define BITS_TO_LONGS(nr) \
DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))