Skip to contentSkip to conversation

ARM: OMAP: Convert devdata to drvdata in rtc-omap.c

PATCH In review Dirk Behme 1 participant 2 messages May 19, 2007 – May 22, 2007 Real time clock (RTC)

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

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.

drivers/rtc/rtc-omap.c +2 -2
Index: linux-osk/drivers/rtc/rtc-omap.c
===================================================================
@@ -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(str
 	free_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;
 }
author
#1 lore raw
Quoted 4 lines · Dirk Behme

Convert devdata to drvdata in rtc-omap.c to make this compile again.

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