]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Create add_rtc() function to enable the RTC CMOS driver
authorWade Farnsworth <wfarnsworth@mvista.com>
Tue, 10 Jul 2007 16:55:46 +0000 (02:55 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 11 Jul 2007 03:24:40 +0000 (13:24 +1000)
commit93ab471889c6662b42ce7da257f31f24c08d7d9e
treed1e665ac13b65c94ef5606787209e096a7d5793c
parent3c0c9e389bb9618fee2300eea2d135e4db64c4ba
[POWERPC] Create add_rtc() function to enable the RTC CMOS driver

In order to use the RTC CMOS driver, each architecture must register a
platform device for the RTC.

This creates a function to register the platform device based on the RTC
device node and verifies that the RTC port against the hard-coded value
in asm/mc146818rtc.h.

Signed-off-by: Wade Farnsworth <wfarnsworth@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/rtc_cmos_setup.c [new file with mode: 0644]