diff options
Diffstat (limited to 'drivers/usb/gadget/ether.c')
| -rw-r--r-- | drivers/usb/gadget/ether.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 49459e33e952..f1024e804d5c 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
| @@ -945,11 +945,11 @@ config_buf (enum usb_device_speed speed, | |||
| 945 | 945 | ||
| 946 | /*-------------------------------------------------------------------------*/ | 946 | /*-------------------------------------------------------------------------*/ |
| 947 | 947 | ||
| 948 | static void eth_start (struct eth_dev *dev, unsigned gfp_flags); | 948 | static void eth_start (struct eth_dev *dev, gfp_t gfp_flags); |
| 949 | static int alloc_requests (struct eth_dev *dev, unsigned n, unsigned gfp_flags); | 949 | static int alloc_requests (struct eth_dev *dev, unsigned n, gfp_t gfp_flags); |
| 950 | 950 | ||
| 951 | static int | 951 | static int |
| 952 | set_ether_config (struct eth_dev *dev, unsigned gfp_flags) | 952 | set_ether_config (struct eth_dev *dev, gfp_t gfp_flags) |
| 953 | { | 953 | { |
| 954 | int result = 0; | 954 | int result = 0; |
| 955 | struct usb_gadget *gadget = dev->gadget; | 955 | struct usb_gadget *gadget = dev->gadget; |
| @@ -1081,7 +1081,7 @@ static void eth_reset_config (struct eth_dev *dev) | |||
| 1081 | * that returns config descriptors, and altsetting code. | 1081 | * that returns config descriptors, and altsetting code. |
| 1082 | */ | 1082 | */ |
| 1083 | static int | 1083 | static int |
| 1084 | eth_set_config (struct eth_dev *dev, unsigned number, unsigned gfp_flags) | 1084 | eth_set_config (struct eth_dev *dev, unsigned number, gfp_t gfp_flags) |
| 1085 | { | 1085 | { |
| 1086 | int result = 0; | 1086 | int result = 0; |
| 1087 | struct usb_gadget *gadget = dev->gadget; | 1087 | struct usb_gadget *gadget = dev->gadget; |
| @@ -1598,7 +1598,7 @@ static void defer_kevent (struct eth_dev *dev, int flag) | |||
| 1598 | static void rx_complete (struct usb_ep *ep, struct usb_request *req); | 1598 | static void rx_complete (struct usb_ep *ep, struct usb_request *req); |
| 1599 | 1599 | ||
| 1600 | static int | 1600 | static int |
| 1601 | rx_submit (struct eth_dev *dev, struct usb_request *req, unsigned gfp_flags) | 1601 | rx_submit (struct eth_dev *dev, struct usb_request *req, gfp_t gfp_flags) |
| 1602 | { | 1602 | { |
| 1603 | struct sk_buff *skb; | 1603 | struct sk_buff *skb; |
| 1604 | int retval = -ENOMEM; | 1604 | int retval = -ENOMEM; |
| @@ -1724,7 +1724,7 @@ clean: | |||
| 1724 | } | 1724 | } |
| 1725 | 1725 | ||
| 1726 | static int prealloc (struct list_head *list, struct usb_ep *ep, | 1726 | static int prealloc (struct list_head *list, struct usb_ep *ep, |
| 1727 | unsigned n, unsigned gfp_flags) | 1727 | unsigned n, gfp_t gfp_flags) |
| 1728 | { | 1728 | { |
| 1729 | unsigned i; | 1729 | unsigned i; |
| 1730 | struct usb_request *req; | 1730 | struct usb_request *req; |
| @@ -1763,7 +1763,7 @@ extra: | |||
| 1763 | return 0; | 1763 | return 0; |
| 1764 | } | 1764 | } |
| 1765 | 1765 | ||
| 1766 | static int alloc_requests (struct eth_dev *dev, unsigned n, unsigned gfp_flags) | 1766 | static int alloc_requests (struct eth_dev *dev, unsigned n, gfp_t gfp_flags) |
| 1767 | { | 1767 | { |
| 1768 | int status; | 1768 | int status; |
| 1769 | 1769 | ||
| @@ -1779,7 +1779,7 @@ fail: | |||
| 1779 | return status; | 1779 | return status; |
| 1780 | } | 1780 | } |
| 1781 | 1781 | ||
| 1782 | static void rx_fill (struct eth_dev *dev, unsigned gfp_flags) | 1782 | static void rx_fill (struct eth_dev *dev, gfp_t gfp_flags) |
| 1783 | { | 1783 | { |
| 1784 | struct usb_request *req; | 1784 | struct usb_request *req; |
| 1785 | unsigned long flags; | 1785 | unsigned long flags; |
| @@ -1962,7 +1962,7 @@ drop: | |||
| 1962 | * normally just one notification will be queued. | 1962 | * normally just one notification will be queued. |
| 1963 | */ | 1963 | */ |
| 1964 | 1964 | ||
| 1965 | static struct usb_request *eth_req_alloc (struct usb_ep *, unsigned, unsigned); | 1965 | static struct usb_request *eth_req_alloc (struct usb_ep *, unsigned, gfp_t); |
| 1966 | static void eth_req_free (struct usb_ep *ep, struct usb_request *req); | 1966 | static void eth_req_free (struct usb_ep *ep, struct usb_request *req); |
| 1967 | 1967 | ||
| 1968 | static void | 1968 | static void |
| @@ -2024,7 +2024,7 @@ static int rndis_control_ack (struct net_device *net) | |||
| 2024 | 2024 | ||
| 2025 | #endif /* RNDIS */ | 2025 | #endif /* RNDIS */ |
| 2026 | 2026 | ||
| 2027 | static void eth_start (struct eth_dev *dev, unsigned gfp_flags) | 2027 | static void eth_start (struct eth_dev *dev, gfp_t gfp_flags) |
| 2028 | { | 2028 | { |
| 2029 | DEBUG (dev, "%s\n", __FUNCTION__); | 2029 | DEBUG (dev, "%s\n", __FUNCTION__); |
| 2030 | 2030 | ||
| @@ -2092,7 +2092,7 @@ static int eth_stop (struct net_device *net) | |||
| 2092 | /*-------------------------------------------------------------------------*/ | 2092 | /*-------------------------------------------------------------------------*/ |
| 2093 | 2093 | ||
| 2094 | static struct usb_request * | 2094 | static struct usb_request * |
| 2095 | eth_req_alloc (struct usb_ep *ep, unsigned size, unsigned gfp_flags) | 2095 | eth_req_alloc (struct usb_ep *ep, unsigned size, gfp_t gfp_flags) |
| 2096 | { | 2096 | { |
| 2097 | struct usb_request *req; | 2097 | struct usb_request *req; |
| 2098 | 2098 | ||
