diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/bus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index ef522ae55480..39b9b58c6974 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c | |||
@@ -333,9 +333,7 @@ static int match_name(struct device *dev, void *data) | |||
333 | { | 333 | { |
334 | const char *name = data; | 334 | const char *name = data; |
335 | 335 | ||
336 | if (strcmp(name, dev->bus_id) == 0) | 336 | return sysfs_streq(name, dev->bus_id); |
337 | return 1; | ||
338 | return 0; | ||
339 | } | 337 | } |
340 | 338 | ||
341 | /** | 339 | /** |