From c1cf9f809b20490f1ec35b67b22d7086586a6527 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 22 Jun 2008 13:04:12 +0000 Subject: 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 --- drivers/dahdi/dahdi-base.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/dahdi/dahdi-base.c') 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 -- cgit v1.2.3