Commit 7347d800 authored by Randy Dunlap's avatar Randy Dunlap Committed by Russell King

[PCMCIA] init_pcmcia_cs() to return error from class_register()

Patch from: Randy Dunlap

From: Walter Harms

Now init_pcmcia_cs() returns the result of class_register().
Therefore init_pcmcia_cs() will possibly return an error.
parent 9d3ab7c9
......@@ -2151,9 +2151,8 @@ static int __init init_pcmcia_cs(void)
{
printk(KERN_INFO "%s\n", release);
printk(KERN_INFO " %s\n", options);
class_register(&pcmcia_socket_class);
return 0;
return class_register(&pcmcia_socket_class);
}
static void __exit exit_pcmcia_cs(void)
......
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