lkml.org 
[lkml]   [2006]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [PATCH 2.6.17-rc3] Fix capi reload by unregistering the correct major
Date
Hi,

after seeing your problems with my patch on -mm-commits, I actually think
this one might be better. It allows dynamic majors and does not break
anything :)
Please change my patch
- Stefan

--- drivers/isdn/capi/capi.c 2006-05-13 00:12:46.000000000 +0200
+++ drivers/isdn/capi/capi.c 2006-05-12 22:16:22.000000000 +0200
@@ -1499,7 +1499,9 @@
printk(KERN_ERR "capi20: unable to get major %d\n",
capi_major);
return major_ret;
}
- capi_major = major_ret;
+ if (major_ret != 0) {
+ capi_major = major_ret;
+ }
capi_class = class_create(THIS_MODULE, "capi");
if (IS_ERR(capi_class)) {
unregister_chrdev(capi_major, "capi20");

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-13 00:19    [from the cache]
©2003-2011 Jasper Spaans