aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r--drivers/rtc/interface.c2
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}