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
...@@ -2008,11 +2008,12 @@ int init_module(void) ...@@ -2008,11 +2008,12 @@ int init_module(void)
if (!(isi_card[0].base || isi_card[1].base || isi_card[2].base || isi_card[3].base)) { if (!(isi_card[0].base || isi_card[1].base || isi_card[2].base || isi_card[3].base)) {
printk(KERN_ERR "ISICOM: No valid card configuration. Driver cannot be initialized...\n"); printk(KERN_ERR "ISICOM: No valid card configuration. Driver cannot be initialized...\n");
return -EIO; 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"); printk(KERN_ERR "ISICOM: Unable to register firmware loader driver.\n");
return -EIO; return retval;
} }
if (!isicom_init()) { 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