diff options
author | David Brownell <david-b@pacbell.net> | 2007-05-08 03:33:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:18 -0400 |
commit | cd9662094edf4173e87f0452e57e4eacc228f8ff (patch) | |
tree | 819d487aad05c7e61531bd25e3e7a0d4c08c6616 /drivers/rtc/rtc-omap.c | |
parent | 7d9f99eccc8f94ace31030a2a7ff73cf5f8c12a0 (diff) |
rtc: remove rest of class_device
Finish converting the RTC framework so it no longer uses class_device.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-By: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
-rw-r--r-- | drivers/rtc/rtc-omap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 4ca3a5182cdb..ded35fd13ba0 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
@@ -399,7 +399,7 @@ static int __devinit omap_rtc_probe(struct platform_device *pdev) | |||
399 | goto fail; | 399 | goto fail; |
400 | } | 400 | } |
401 | platform_set_drvdata(pdev, rtc); | 401 | platform_set_drvdata(pdev, rtc); |
402 | class_set_devdata(&rtc->class_dev, mem); | 402 | dev_set_devdata(&rtc->dev, mem); |
403 | 403 | ||
404 | /* clear pending irqs, and set 1/second periodic, | 404 | /* clear pending irqs, and set 1/second periodic, |
405 | * which we'll use instead of update irqs | 405 | * which we'll use instead of update irqs |
@@ -418,13 +418,13 @@ static int __devinit omap_rtc_probe(struct platform_device *pdev) | |||
418 | 418 | ||
419 | /* handle periodic and alarm irqs */ | 419 | /* handle periodic and alarm irqs */ |
420 | if (request_irq(omap_rtc_timer, rtc_irq, IRQF_DISABLED, | 420 | if (request_irq(omap_rtc_timer, rtc_irq, IRQF_DISABLED, |
421 | rtc->class_dev.class_id, &rtc->class_dev)) { | 421 | rtc->dev.bus_id, rtc)) { |
422 | pr_debug("%s: RTC timer interrupt IRQ%d already claimed\n", | 422 | pr_debug("%s: RTC timer interrupt IRQ%d already claimed\n", |
423 | pdev->name, omap_rtc_timer); | 423 | pdev->name, omap_rtc_timer); |
424 | goto fail0; | 424 | goto fail0; |
425 | } | 425 | } |
426 | if (request_irq(omap_rtc_alarm, rtc_irq, IRQF_DISABLED, | 426 | if (request_irq(omap_rtc_alarm, rtc_irq, IRQF_DISABLED, |
427 | rtc->class_dev.class_id, &rtc->class_dev)) { | 427 | rtc->dev.bus_id, rtc)) { |
428 | pr_debug("%s: RTC alarm interrupt IRQ%d already claimed\n", | 428 | pr_debug("%s: RTC alarm interrupt IRQ%d already claimed\n", |
429 | pdev->name, omap_rtc_alarm); | 429 | pdev->name, omap_rtc_alarm); |
430 | goto fail1; | 430 | goto fail1; |
@@ -481,7 +481,7 @@ static int __devexit omap_rtc_remove(struct platform_device *pdev) | |||
481 | free_irq(omap_rtc_timer, rtc); | 481 | free_irq(omap_rtc_timer, rtc); |
482 | free_irq(omap_rtc_alarm, rtc); | 482 | free_irq(omap_rtc_alarm, rtc); |
483 | 483 | ||
484 | release_resource(class_get_devdata(&rtc->class_dev)); | 484 | release_resource(dev_get_devdata(&rtc->dev)); |
485 | rtc_device_unregister(rtc); | 485 | rtc_device_unregister(rtc); |
486 | return 0; | 486 | return 0; |
487 | } | 487 | } |