]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/rtc/interface.c
rtc: struct device: replace bus_id with dev_name(), dev_set_name()
[linux-2.6-omap-h63xx.git] / drivers / rtc / interface.c
index fd2c652504ff6bbac47545f9ca8f74604ea3e9b5..43276f29d63610db4984cf24bdc006b7cbc2f57b 100644 (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;
 }