diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-03-14 11:14:26 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-03 07:43:34 -0400 |
commit | 9786b4561228099f579ad88912aa305812526ea1 (patch) | |
tree | 3ab0c0c61ffd906ec432756bf30190ec227e899c /drivers/usb/gadget/f_serial.c | |
parent | 70cc3c024640a3c60e91d04789f9574a371a2db5 (diff) |
usb: gadget: f_serial: remove compatibility layer
There are no old function interface users left, so the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/f_serial.c')
-rw-r--r-- | drivers/usb/gadget/f_serial.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/usb/gadget/f_serial.c b/drivers/usb/gadget/f_serial.c index 465789bd5c91..49c3d146f9b0 100644 --- a/drivers/usb/gadget/f_serial.c +++ b/drivers/usb/gadget/f_serial.c | |||
@@ -258,50 +258,6 @@ fail: | |||
258 | return status; | 258 | return status; |
259 | } | 259 | } |
260 | 260 | ||
261 | #ifdef USB_FSERIAL_INCLUDED | ||
262 | |||
263 | static void | ||
264 | gser_old_unbind(struct usb_configuration *c, struct usb_function *f) | ||
265 | { | ||
266 | usb_free_all_descriptors(f); | ||
267 | kfree(func_to_gser(f)); | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * gser_bind_config - add a generic serial function to a configuration | ||
272 | * @c: the configuration to support the serial instance | ||
273 | * @port_num: /dev/ttyGS* port this interface will use | ||
274 | * Context: single threaded during gadget setup | ||
275 | * | ||
276 | * Returns zero on success, else negative errno. | ||
277 | */ | ||
278 | int __init gser_bind_config(struct usb_configuration *c, u8 port_num) | ||
279 | { | ||
280 | struct f_gser *gser; | ||
281 | int status; | ||
282 | |||
283 | /* allocate and initialize one new instance */ | ||
284 | gser = kzalloc(sizeof *gser, GFP_KERNEL); | ||
285 | if (!gser) | ||
286 | return -ENOMEM; | ||
287 | |||
288 | gser->port_num = port_num; | ||
289 | |||
290 | gser->port.func.name = "gser"; | ||
291 | gser->port.func.strings = gser_strings; | ||
292 | gser->port.func.bind = gser_bind; | ||
293 | gser->port.func.unbind = gser_old_unbind; | ||
294 | gser->port.func.set_alt = gser_set_alt; | ||
295 | gser->port.func.disable = gser_disable; | ||
296 | |||
297 | status = usb_add_function(c, &gser->port.func); | ||
298 | if (status) | ||
299 | kfree(gser); | ||
300 | return status; | ||
301 | } | ||
302 | |||
303 | #else | ||
304 | |||
305 | static void gser_free_inst(struct usb_function_instance *f) | 261 | static void gser_free_inst(struct usb_function_instance *f) |
306 | { | 262 | { |
307 | struct f_serial_opts *opts; | 263 | struct f_serial_opts *opts; |
@@ -372,5 +328,3 @@ DECLARE_USB_FUNCTION_INIT(gser, gser_alloc_inst, gser_alloc); | |||
372 | MODULE_LICENSE("GPL"); | 328 | MODULE_LICENSE("GPL"); |
373 | MODULE_AUTHOR("Al Borchers"); | 329 | MODULE_AUTHOR("Al Borchers"); |
374 | MODULE_AUTHOR("David Brownell"); | 330 | MODULE_AUTHOR("David Brownell"); |
375 | |||
376 | #endif | ||