Commit ea3e48d7 authored by Michael Still's avatar Michael Still Committed by Linus Torvalds

[PATCH] misc_register-011-002

parent 2629dee8
...@@ -688,9 +688,10 @@ static int __init nwflash_init(void) ...@@ -688,9 +688,10 @@ static int __init nwflash_init(void)
printk("Flash ROM driver v.%s, flash device ID 0x%04X, size %d Mb.\n", printk("Flash ROM driver v.%s, flash device ID 0x%04X, size %d Mb.\n",
NWFLASH_VERSION, id, gbFlashSize / (1024 * 1024)); NWFLASH_VERSION, id, gbFlashSize / (1024 * 1024));
misc_register(&flash_miscdev); ret = misc_register(&flash_miscdev);
if (ret < 0) {
ret = 0; iounmap((void *)FLASH_BASE);
}
} }
out: out:
return ret; return ret;
......
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