Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289674
b: refs/heads/master
c: b790f5d
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Mar 10, 2012
1 parent 19fa930 commit 7dc4125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd4946188aac597d187a765127fd26fa3644c29f
refs/heads/master: b790f5d1260b4c962bd066cd34ae982943c27fe1
17 changes: 2 additions & 15 deletions trunk/include/linux/usb/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,23 +416,10 @@ do { \
* module may only use this macro once, and calling it replaces
* module_init() and module_exit()
*
* Note, we can't use the generic module_driver() call here, due to the
* two parameters in the usb_serial_* functions, so we roll our own here
* :(
*/
#define module_usb_serial_driver(__usb_driver, __serial_drivers) \
static int __init usb_serial_driver_init(void) \
{ \
return usb_serial_register_drivers(&(__usb_driver), \
(__serial_drivers)); \
} \
module_init(usb_serial_driver_init); \
static void __exit usb_serial_driver_exit(void) \
{ \
return usb_serial_deregister_drivers(&(__usb_driver), \
(__serial_drivers)); \
} \
module_exit(usb_serial_driver_exit);
module_driver(__usb_driver, usb_serial_register_drivers, \
usb_serial_deregister_drivers, __serial_drivers)

#endif /* __LINUX_USB_SERIAL_H */

0 comments on commit 7dc4125

Please sign in to comment.