diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index 42510a003342d52d2897aedc1d0d98aa42a00850..844a0c72365aad87160143a6d41e9ce3655f09fb 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 7236b8d0c302b7c42bb4128d3ea75de27ae822fe..c7fd649f5ea79d7fe9e22443f60b24c73b87828f 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 1a7a0b9c95259baa02e04aff6ddebd3c89fda4a7..f3461b412b4eb29cd4e6d20d5c35094bfa9a7a6a 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 29fb166934c8d5d71e09d080665ed555910fe7da..4a01585f809427e9d06ed8c50d7fafd97a766f12 100644 --- a/include/usb/lin_gadget_compat.h +++ b/include/usb/lin_gadget_compat.h @@ -13,8 +13,6 @@ #include /* 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))