Driver core: make bus_find_device_by_name() more robust
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 23 Sep 2008 20:01:27 +0000 (22:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Oct 2008 16:24:51 +0000 (09:24 -0700)
commit3ce24d8d93f8f9617841d0c8416174da7ee1b042
tree3658cd5d9131572b7822cc32bd07a672bdfdb243
parent5172046d960b27f7c22bed8038d696e7004cb112
Driver core: make bus_find_device_by_name() more robust

Use sysfs_streq() in bus_find_device_by_name() so trailing newlines
are ignored (E.G. in bind/unbind).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c