diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-06-22 13:04:12 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-06-22 13:04:12 +0000 |
commit | c1cf9f809b20490f1ec35b67b22d7086586a6527 (patch) | |
tree | 21c0decdb98dbe990b948e0c34d678297ba663e8 /drivers | |
parent | e7d1a0afc9dbc3590551274f41be629ae12625f8 (diff) |
Add the class_unregioster that was dropped in r4435 to allow unloading
and reloading zaptel.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4445 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 8b13454..feb1f53 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -7686,6 +7686,8 @@ static void __exit dahdi_cleanup(void) { class_device_destroy(dahdi_class, MKDEV(DAHDI_MAJOR, 0)); /* ctl */ class_destroy(dahdi_class); + unregister_chrdev(DAHDI_MAJOR, "dahdi"); + #ifdef CONFIG_DAHDI_WATCHDOG watchdog_cleanup(); #endif |