projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acc729
)
superhyway: Handle device_register() retval properly.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 6 Nov 2007 09:05:08 +0000
(18:05 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Wed, 7 Nov 2007 02:13:55 +0000
(11:13 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/superhyway/superhyway.c
patch
|
blob
|
history
diff --git
a/drivers/sh/superhyway/superhyway.c
b/drivers/sh/superhyway/superhyway.c
index 7d873b3b0513c03fb8fcfaa3e52b622e4cc4760f..4d0282b821b519b3bd750cd5266ea9a02b78cd26 100644
(file)
--- a/
drivers/sh/superhyway/superhyway.c
+++ b/
drivers/sh/superhyway/superhyway.c
@@
-107,16
+107,17
@@
int superhyway_add_devices(struct superhyway_bus *bus,
static int __init superhyway_init(void)
{
struct superhyway_bus *bus;
- int ret
= 0
;
+ int ret;
- device_register(&superhyway_bus_device);
+ ret = device_register(&superhyway_bus_device);
+ if (unlikely(ret))
+ return ret;
for (bus = superhyway_channels; bus->ops; bus++)
ret |= superhyway_scan_bus(bus);
return ret;
}
-
postcore_initcall(superhyway_init);
static const struct superhyway_device_id *