aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/rtc_cmos_setup.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-15PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.Rusty Russell1-1/+1
Sweep of the simple cases. Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Julia Lawall <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Acked-by: David S. Miller <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]>
2013-04-18powerpc: Use PTR_RET instead of IS_ERR/PTR_ERRAdrian-Leonard Radu1-4/+1
Signed-off-by: Adrian-Leonard Radu <[email protected]> Acked-by: Geoff Levand <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
2011-10-31powerpc: Fix up modules that should be including module.hPaul Gortmaker1-0/+1
So that we can clean up the header files and not be relying on implicit includes from device.h ---> module.h Signed-off-by: Paul Gortmaker <[email protected]>
2008-07-28powerpc: rtc_cmos_setup: assign interrupts only if there is i8259 PICAnton Vorontsov1-6/+17
i8259 PIC is disabled on MPC8610HPCD boards, thus currently rtc-cmos driver fails to probe. To fix the issue, we lookup the device tree for "chrp,iic" and "pnpPNP,000" compatible devices, and if not found we do not assign RTC IRQ and assuming that i8259 was disabled. Though this patch fixes RTC on some boards (and surely should not break any other), the whole approach is still broken. We can't easily fix this though, because old device trees do not specify i8259 interrupts for the cmos rtc node. Signed-off-by: Anton Vorontsov <[email protected]> Signed-off-by: Kumar Gala <[email protected]>
2008-04-17[POWERPC] Add MODULE_LICENSE to powerpc/sysdev/rtc_cmos_setup.cAdrian Bunk1-0/+2
This adds the missing MODULE_LICENSE("GPL"). Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2007-08-17[POWERPC] Add interrupt resource for RTC CMOS driverKumar Gala1-4/+13
The RTC CMOS driver expects the interrupt to be a resource of the platform device. Use a fixed interrupt value of 8 since on PPC if we are using this its off an i8259 which we ensure has interrupt numbers 0..15. Signed-off-by: Kumar Gala <[email protected]>
2007-07-11[POWERPC] Create add_rtc() function to enable the RTC CMOS driverWade Farnsworth1-0/+49
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>