Commit 80f335d0 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] misc_register-002-002

[ Return error from misc_register-002-002, not some random value ]
From:  Michael Still <mikal@stillhq.com>
parent 91dca0d6
......@@ -2009,10 +2009,11 @@ int init_module(void)
printk(KERN_ERR "ISICOM: No valid card configuration. Driver cannot be initialized...\n");
return -EIO;
}
retval=misc_register(&isiloader_device);
if (retval<0) {
retval = misc_register(&isiloader_device);
if (retval < 0) {
printk(KERN_ERR "ISICOM: Unable to register firmware loader driver.\n");
return -EIO;
return retval;
}
if (!isicom_init()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment