diff options
| author | Randy Dunlap <rddunlap@org.rmk.(none)> | 2004-04-12 19:54:09 +0100 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2004-04-12 19:54:09 +0100 |
| commit | 7347d800b0ec77f34ae1069adc93312a15ab549e (patch) | |
| tree | a21a045b073eb275c9fe220e9208fc7ca527517e | |
| parent | 9d3ab7c996d25c77bd9f6d6f09e67b682e1496c9 (diff) | |
[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.
| -rw-r--r-- | drivers/pcmcia/cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index fed090991090..881561fd7fa9 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c @@ -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) |
