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>
This commit is contained in:
Kay Sievers 2009-01-06 14:42:11 -08:00 committed by Linus Torvalds
parent 103d6d9170
commit d4afc76c0b
3 changed files with 12 additions and 16 deletions

View file

@ -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;
}