Skip to content

Commit

Permalink
rtc-omap build fix
Browse files Browse the repository at this point in the history
Fix typo which breaks build.  How did that happen?

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Brownell authored and Linus Torvalds committed May 17, 2007
1 parent 83c6590 commit 558a40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static int __devinit omap_rtc_probe(struct platform_device *pdev)
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
Expand Down Expand Up @@ -453,7 +453,7 @@ static int __devexit omap_rtc_remove(struct platform_device *pdev)
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;
}
Expand Down

0 comments on commit 558a40f

Please sign in to comment.