]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: warn about duplicate driver names on the same bus
authorStas Sergeev <stsp@aknet.ru>
Sat, 26 Apr 2008 15:52:35 +0000 (19:52 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Apr 2008 23:52:47 +0000 (16:52 -0700)
commitbbe88c018a9fdf7b62b1730ea1aab956c9badae1
tree2551571326e4927e70485159fafdc8ee7a3eb2ca
parent2a576b1f181a250c11846de41b8f4d8789a97c57
driver core: warn about duplicate driver names on the same bus

Currently an attempt to register multiple
drivers with the same name causes the
stack trace with some cryptic error message.
The attached patch adds the necessary check
and the clear error message.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/driver.c