ARM: OMAP: Convert devdata to drvdata in rtc-omap.c
PATCH 1/1 ARM: OMAP: Convert devdata to drvdata in rtc-omap.c
Convert devdata to drvdata in rtc-omap.c to make this compile again.
Signed-off-by Dirk Behme <[email protected]>
drivers/rtc/rtc-omap.c +2 -2
@@ -371,7 +371,7 @@ static int __devinit omap_rtc_probe(stru goto fail; }platform_set_drvdata (pdev, rtc); -dev_set_devdata (&rtc->dev, mem); +dev_set_drvdata (&rtc->dev, mem);/* clear pending irqs, and set 1/second periodic, * which we'll use instead of update irqs
@@ -453,7 +453,7 @@ static int __devexit omap_rtc_remove(strfree_irq (omap_rtc_timer, rtc);free_irq (omap_rtc_alarm, rtc); -release_resource (dev_get_devdata (&rtc->dev)); +release_resource (dev_get_drvdata (&rtc->dev));rtc_device_unregister (rtc);return 0 ; }
Quoted 4 lines · Dirk Behme
Convert devdata to drvdata in
rtc-omap.cto make this compile again.Signed-off-by Dirk Behme <[email protected]>
Got a short notice from David that this is already fixed in 2.6.22-rc2. So please ignore this patch.
Thanks for the info!
Dirk