diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-06 14:42:11 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 15:59:23 -0800 |
commit | d4afc76c0b59a37113e184004f8a9989cfc1ddd3 (patch) | |
tree | 92d36a41879749c0faa912f98476b7947b192825 /drivers/rtc/interface.c | |
parent | 103d6d9170e3ecd9cefee9406bf928e1fcc45cc5 (diff) | |
download | linux-3.10-d4afc76c0b59a37113e184004f8a9989cfc1ddd3.tar.gz linux-3.10-d4afc76c0b59a37113e184004f8a9989cfc1ddd3.tar.bz2 linux-3.10-d4afc76c0b59a37113e184004f8a9989cfc1ddd3.zip |
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 fd2c652504f..43276f29d63 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c @@ -389,7 +389,7 @@ static int __rtc_match(struct device *dev, void *data) { char *name = (char *)data; - if (strncmp(dev->bus_id, name, BUS_ID_SIZE) == 0) + if (strcmp(dev_name(dev), name) == 0) return 1; return 0; } |