diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-10-03 01:14:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 08:04:08 -0700 |
commit | 349ae23fe7379a42973bcb1c85f7d43ec583c17d (patch) | |
tree | 2f885e437a59a23f04161e9761b86a8421ab6ff7 /drivers/ide/ide.c | |
parent | 5ac24697699b394cdebac0a2329ce3af247d6a3b (diff) |
[PATCH] IDE core: driver layer error checking
Check driver layer return values in IDE core.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 8c3f0624228..97b162ca988 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c @@ -1997,10 +1997,16 @@ EXPORT_SYMBOL_GPL(ide_bus_type); */ static int __init ide_init(void) { + int ret; + printk(KERN_INFO "Uniform Multi-Platform E-IDE driver " REVISION "\n"); system_bus_speed = ide_system_bus_speed(); - bus_register(&ide_bus_type); + ret = bus_register(&ide_bus_type); + if (ret < 0) { + printk(KERN_WARNING "IDE: bus_register error: %d\n", ret); + return ret; + } init_ide_data(); |