diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-06 17:42:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:23 -0500 |
commit | d4afc76c0b59a37113e184004f8a9989cfc1ddd3 (patch) | |
tree | 92d36a41879749c0faa912f98476b7947b192825 /drivers/rtc/interface.c | |
parent | 103d6d9170e3ecd9cefee9406bf928e1fcc45cc5 (diff) |
rtc: struct device: replace bus_id with dev_name(), dev_set_name()
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Acked-By: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r-- | drivers/rtc/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index fd2c652504ff..43276f29d636 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c | |||
@@ -389,7 +389,7 @@ static int __rtc_match(struct device *dev, void *data) | |||
389 | { | 389 | { |
390 | char *name = (char *)data; | 390 | char *name = (char *)data; |
391 | 391 | ||
392 | if (strncmp(dev->bus_id, name, BUS_ID_SIZE) == 0) | 392 | if (strcmp(dev_name(dev), name) == 0) |
393 | return 1; | 393 | return 1; |
394 | return 0; | 394 | return 0; |
395 | } | 395 | } |