]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/interface.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux.git] / drivers / rtc / interface.c
index 72b7ddc4311656cedbb4b14d597461b50d8bc7bb..c93ef33b01d36bc6950058bdfced9c5df67e93ee 100644 (file)
@@ -663,21 +663,12 @@ void rtc_update_irq(struct rtc_device *rtc,
 }
 EXPORT_SYMBOL_GPL(rtc_update_irq);
 
-static int __rtc_match(struct device *dev, const void *data)
-{
-       const char *name = data;
-
-       if (strcmp(dev_name(dev), name) == 0)
-               return 1;
-       return 0;
-}
-
 struct rtc_device *rtc_class_open(const char *name)
 {
        struct device *dev;
        struct rtc_device *rtc = NULL;
 
-       dev = class_find_device(rtc_class, NULL, name, __rtc_match);
+       dev = class_find_device_by_name(rtc_class, name);
        if (dev)
                rtc = to_rtc_device(dev);