diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-23 14:05:01 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-23 14:05:01 +0000 |
commit | f3627cbe9236a062012c836f3b6ee311b43f63f2 (patch) | |
tree | ae854838b9a73b35bd0f3b8f42e5fb7f9cb1d5a9 /drivers/usb/serial/keyspan_pda.c | |
parent | fea12a7b3f20bc135ab533491411e9ff753c01c8 (diff) |
Merge with Linux 2.4.0-test5-pre4.
Diffstat (limited to 'drivers/usb/serial/keyspan_pda.c')
-rw-r--r-- | drivers/usb/serial/keyspan_pda.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index c18137ffa..aca2a38c5 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c @@ -11,6 +11,10 @@ * * See Documentation/usb/usb-serial.txt for more information on using this driver * + * (07/19/2000) gkh + * Added module_init and module_exit functions to handle the fact that this + * driver is a loadable module now. + * * (03/26/2000) gkh * Split driver up into device specific pieces. * @@ -697,3 +701,22 @@ struct usb_serial_device_type keyspan_pda_device = { shutdown: keyspan_pda_shutdown, }; + +int keyspan_pda_init (void) +{ + usb_serial_register (&keyspan_pda_fake_device); + usb_serial_register (&keyspan_pda_device); + return 0; +} + + +void keyspan_pda_exit (void) +{ + usb_serial_deregister (&keyspan_pda_fake_device); + usb_serial_deregister (&keyspan_pda_device); +} + + +module_init(keyspan_pda_init); +module_exit(keyspan_pda_exit); + |