Skip to content

Commit

Permalink
rtc: struct device - replace bus_id with dev_name(), dev_set_name()
Browse files Browse the repository at this point in the history
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Kay Sievers <[email protected]>
Signed-off-by: Alessandro Zummo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kaysievers authored and gregkh committed Mar 24, 2009
1 parent f2fecec commit 744bcb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-at91sam9.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev)
/* register irq handler after we know what name we'll use */
ret = request_irq(AT91_ID_SYS, at91_rtc_interrupt,
IRQF_DISABLED | IRQF_SHARED,
rtc->rtcdev->dev.bus_id, rtc);
dev_name(&rtc->rtcdev->dev), rtc);
if (ret) {
dev_dbg(&pdev->dev, "can't share IRQ %d?\n", AT91_ID_SYS);
rtc_device_unregister(rtc->rtcdev);
Expand All @@ -366,7 +366,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev)

if (gpbr_readl(rtc) == 0)
dev_warn(&pdev->dev, "%s: SET TIME!\n",
rtc->rtcdev->dev.bus_id);
dev_name(&rtc->rtcdev->dev));

return 0;

Expand Down
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,13 @@ static int __init omap_rtc_probe(struct platform_device *pdev)

/* handle periodic and alarm irqs */
if (request_irq(omap_rtc_timer, rtc_irq, IRQF_DISABLED,
rtc->dev.bus_id, rtc)) {
dev_name(&rtc->dev), rtc)) {
pr_debug("%s: RTC timer interrupt IRQ%d already claimed\n",
pdev->name, omap_rtc_timer);
goto fail0;
}
if (request_irq(omap_rtc_alarm, rtc_irq, IRQF_DISABLED,
rtc->dev.bus_id, rtc)) {
dev_name(&rtc->dev), rtc)) {
pr_debug("%s: RTC alarm interrupt IRQ%d already claimed\n",
pdev->name, omap_rtc_alarm);
goto fail1;
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int __devinit twl4030_rtc_probe(struct platform_device *pdev)

ret = request_irq(irq, twl4030_rtc_interrupt,
IRQF_TRIGGER_RISING,
rtc->dev.bus_id, rtc);
dev_name(&rtc->dev), rtc);
if (ret < 0) {
dev_err(&pdev->dev, "IRQ is not free.\n");
goto out1;
Expand Down

0 comments on commit 744bcb1

Please sign in to comment.