diff options
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 6cf8e282338f..d37bb86db5d0 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
@@ -729,7 +729,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) | |||
729 | 729 | ||
730 | cmos_rtc.dev = dev; | 730 | cmos_rtc.dev = dev; |
731 | dev_set_drvdata(dev, &cmos_rtc); | 731 | dev_set_drvdata(dev, &cmos_rtc); |
732 | rename_region(ports, cmos_rtc.rtc->dev.bus_id); | 732 | rename_region(ports, dev_name(&cmos_rtc.rtc->dev)); |
733 | 733 | ||
734 | spin_lock_irq(&rtc_lock); | 734 | spin_lock_irq(&rtc_lock); |
735 | 735 | ||
@@ -777,7 +777,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) | |||
777 | rtc_cmos_int_handler = cmos_interrupt; | 777 | rtc_cmos_int_handler = cmos_interrupt; |
778 | 778 | ||
779 | retval = request_irq(rtc_irq, rtc_cmos_int_handler, | 779 | retval = request_irq(rtc_irq, rtc_cmos_int_handler, |
780 | IRQF_DISABLED, cmos_rtc.rtc->dev.bus_id, | 780 | IRQF_DISABLED, dev_name(&cmos_rtc.rtc->dev), |
781 | cmos_rtc.rtc); | 781 | cmos_rtc.rtc); |
782 | if (retval < 0) { | 782 | if (retval < 0) { |
783 | dev_dbg(dev, "IRQ %d is already in use\n", rtc_irq); | 783 | dev_dbg(dev, "IRQ %d is already in use\n", rtc_irq); |
@@ -795,7 +795,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) | |||
795 | } | 795 | } |
796 | 796 | ||
797 | pr_info("%s: alarms up to one %s%s, %zd bytes nvram%s\n", | 797 | pr_info("%s: alarms up to one %s%s, %zd bytes nvram%s\n", |
798 | cmos_rtc.rtc->dev.bus_id, | 798 | dev_name(&cmos_rtc.rtc->dev), |
799 | is_valid_irq(rtc_irq) | 799 | is_valid_irq(rtc_irq) |
800 | ? (cmos_rtc.mon_alrm | 800 | ? (cmos_rtc.mon_alrm |
801 | ? "year" | 801 | ? "year" |
@@ -885,7 +885,7 @@ static int cmos_suspend(struct device *dev, pm_message_t mesg) | |||
885 | } | 885 | } |
886 | 886 | ||
887 | pr_debug("%s: suspend%s, ctrl %02x\n", | 887 | pr_debug("%s: suspend%s, ctrl %02x\n", |
888 | cmos_rtc.rtc->dev.bus_id, | 888 | dev_name(&cmos_rtc.rtc->dev), |
889 | (tmp & RTC_AIE) ? ", alarm may wake" : "", | 889 | (tmp & RTC_AIE) ? ", alarm may wake" : "", |
890 | tmp); | 890 | tmp); |
891 | 891 | ||
@@ -941,7 +941,7 @@ static int cmos_resume(struct device *dev) | |||
941 | } | 941 | } |
942 | 942 | ||
943 | pr_debug("%s: resume, ctrl %02x\n", | 943 | pr_debug("%s: resume, ctrl %02x\n", |
944 | cmos_rtc.rtc->dev.bus_id, | 944 | dev_name(&cmos_rtc.rtc->dev), |
945 | tmp); | 945 | tmp); |
946 | 946 | ||
947 | return 0; | 947 | return 0; |