Commit ddba7f15 authored by Chris Wilson's avatar Chris Wilson Committed by Linus Torvalds

[PATCH] drivers_sgi_char_streamable.c misc_register patch

parent b518f748
...@@ -309,10 +309,27 @@ static struct miscdevice dev_input_mouse = { ...@@ -309,10 +309,27 @@ static struct miscdevice dev_input_mouse = {
void void
streamable_init (void) streamable_init (void)
{ {
printk ("streamable misc devices registered (keyb:%d, gfx:%d)\n", if (misc_register (&dev_gfx) < 0) {
SGI_STREAMS_KEYBOARD, SGI_GFX_MINOR); printk(KERN_ERR
"streamable: cannot register gfx misc device.\n");
return;
}
if (misc_register (&dev_input_keyboard) < 0) {
printk(KERN_ERR
"streamable: cannot register keyboard misc device.\n");
misc_deregister(&dev_gfx);
return;
}
misc_register (&dev_gfx); if (misc_register (&dev_input_mouse) < 0) {
misc_register (&dev_input_keyboard); printk(KERN_ERR
misc_register (&dev_input_mouse); "streamable: cannot register mouse misc device.\n");
misc_deregister(&dev_input_keyboard);
misc_deregister(&dev_gfx);
return;
}
printk ("streamable: misc devices registered (keyb:%d, gfx:%d)\n",
SGI_STREAMS_KEYBOARD, SGI_GFX_MINOR);
} }
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