Commit 1ab10ae7 authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Linus Torvalds

[PATCH] pcmcia: check return values of driver_register

parent 5d0cc6a1
...@@ -1608,9 +1608,11 @@ static int __init init_i82365(void) ...@@ -1608,9 +1608,11 @@ static int __init init_i82365(void)
return -1; return -1;
} }
DEBUG(0, "%s\n", version); DEBUG(0, "%s\n", version);
if (driver_register(&i82365_driver))
return -1;
printk(KERN_INFO "Intel PCIC probe: "); printk(KERN_INFO "Intel PCIC probe: ");
sockets = 0; sockets = 0;
driver_register(&i82365_driver);
#ifdef CONFIG_ISA #ifdef CONFIG_ISA
isa_probe(); isa_probe();
......
...@@ -408,7 +408,8 @@ static int __init init_tcic(void) ...@@ -408,7 +408,8 @@ static int __init init_tcic(void)
return -1; return -1;
} }
driver_register(&tcic_driver); if (driver_register(&tcic_driver))
return -1;
printk(KERN_INFO "Databook TCIC-2 PCMCIA probe: "); printk(KERN_INFO "Databook TCIC-2 PCMCIA probe: ");
sock = 0; sock = 0;
......
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