aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-cmos.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
-rw-r--r--drivers/rtc/rtc-cmos.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index 4b586ebb5814..4e8c373f78e3 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -434,7 +434,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
434 goto cleanup0; 434 goto cleanup0;
435 } 435 }
436 } 436 }
437 rename_region(ports, cmos_rtc.rtc->class_dev.class_id); 437 rename_region(ports, cmos_rtc.rtc->dev.bus_id);
438 438
439 spin_lock_irq(&rtc_lock); 439 spin_lock_irq(&rtc_lock);
440 440
@@ -470,7 +470,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
470 470
471 if (is_valid_irq(rtc_irq)) 471 if (is_valid_irq(rtc_irq))
472 retval = request_irq(rtc_irq, cmos_interrupt, IRQF_DISABLED, 472 retval = request_irq(rtc_irq, cmos_interrupt, IRQF_DISABLED,
473 cmos_rtc.rtc->class_dev.class_id, 473 cmos_rtc.rtc->dev.bus_id,
474 cmos_rtc.rtc); 474 cmos_rtc.rtc);
475 if (retval < 0) { 475 if (retval < 0) {
476 dev_dbg(dev, "IRQ %d is already in use\n", rtc_irq); 476 dev_dbg(dev, "IRQ %d is already in use\n", rtc_irq);
@@ -483,7 +483,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
483 */ 483 */
484 484
485 pr_info("%s: alarms up to one %s%s\n", 485 pr_info("%s: alarms up to one %s%s\n",
486 cmos_rtc.rtc->class_dev.class_id, 486 cmos_rtc.rtc->dev.bus_id,
487 is_valid_irq(rtc_irq) 487 is_valid_irq(rtc_irq)
488 ? (cmos_rtc.mon_alrm 488 ? (cmos_rtc.mon_alrm
489 ? "year" 489 ? "year"
@@ -525,7 +525,7 @@ static void __exit cmos_do_remove(struct device *dev)
525 rename_region(cmos->iomem, NULL); 525 rename_region(cmos->iomem, NULL);
526 526
527 if (is_valid_irq(cmos->irq)) 527 if (is_valid_irq(cmos->irq))
528 free_irq(cmos->irq, &cmos_rtc.rtc->class_dev); 528 free_irq(cmos->irq, cmos_rtc.rtc);
529 529
530 rtc_device_unregister(cmos_rtc.rtc); 530 rtc_device_unregister(cmos_rtc.rtc);
531 531
@@ -564,7 +564,7 @@ static int cmos_suspend(struct device *dev, pm_message_t mesg)
564 */ 564 */
565 565
566 pr_debug("%s: suspend%s, ctrl %02x\n", 566 pr_debug("%s: suspend%s, ctrl %02x\n",
567 cmos_rtc.rtc->class_dev.class_id, 567 cmos_rtc.rtc->dev.bus_id,
568 (tmp & RTC_AIE) ? ", alarm may wake" : "", 568 (tmp & RTC_AIE) ? ", alarm may wake" : "",
569 tmp); 569 tmp);
570 570
@@ -595,7 +595,7 @@ static int cmos_resume(struct device *dev)
595 } 595 }
596 596
597 pr_debug("%s: resume, ctrl %02x\n", 597 pr_debug("%s: resume, ctrl %02x\n",
598 cmos_rtc.rtc->class_dev.class_id, 598 cmos_rtc.rtc->dev.bus_id,
599 cmos->suspend_ctrl); 599 cmos->suspend_ctrl);
600 600
601 601