summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_acm.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-12-23 21:10:02 +0100
committerFelipe Balbi <balbi@ti.com>2013-01-21 20:52:41 +0200
commit05c062c571ee19f08deb1c12fc2dd14b92f89eb8 (patch)
treefcf1c6f2c0f8be138e0bcb3aab92dbf459f6e0e1 /drivers/usb/gadget/f_acm.c
parentcf9a08ae5aece88987bbeee8eb0dd0ebb5015815 (diff)
downloadblackbird-obmc-linux-05c062c571ee19f08deb1c12fc2dd14b92f89eb8.tar.gz
blackbird-obmc-linux-05c062c571ee19f08deb1c12fc2dd14b92f89eb8.zip
usb: gadget: f_acm: remove empty function
The significant part of this function was removed in 90f7976 ("USB: Remove unsupported usb gadget drivers"). I would move this to function bind time but I don't see the point in moving an empty function. Therefore bye bye. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/f_acm.c')
-rw-r--r--drivers/usb/gadget/f_acm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c
index 549174466c21..d4a7c1912105 100644
--- a/drivers/usb/gadget/f_acm.c
+++ b/drivers/usb/gadget/f_acm.c
@@ -711,13 +711,6 @@ acm_unbind(struct usb_configuration *c, struct usb_function *f)
kfree(acm);
}
-/* Some controllers can't support CDC ACM ... */
-static inline bool can_support_cdc(struct usb_configuration *c)
-{
- /* everything else is *probably* fine ... */
- return true;
-}
-
/**
* acm_bind_config - add a CDC ACM function to a configuration
* @c: the configuration to support the CDC ACM instance
@@ -735,9 +728,6 @@ int acm_bind_config(struct usb_configuration *c, u8 port_num)
struct f_acm *acm;
int status;
- if (!can_support_cdc(c))
- return -EINVAL;
-
/* REVISIT might want instance-specific strings to help
* distinguish instances ...
*/
OpenPOWER on IntegriCloud