diff options
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/Kconfig | 3 | ||||
-rw-r--r-- | drivers/rtc/rtc-imxdi.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e069f176a82d..19c03ab2bdcb 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
@@ -59,6 +59,7 @@ comment "RTC interfaces" | |||
59 | config RTC_INTF_SYSFS | 59 | config RTC_INTF_SYSFS |
60 | boolean "/sys/class/rtc/rtcN (sysfs)" | 60 | boolean "/sys/class/rtc/rtcN (sysfs)" |
61 | depends on SYSFS | 61 | depends on SYSFS |
62 | default RTC_CLASS | ||
62 | help | 63 | help |
63 | Say yes here if you want to use your RTCs using sysfs interfaces, | 64 | Say yes here if you want to use your RTCs using sysfs interfaces, |
64 | /sys/class/rtc/rtc0 through /sys/.../rtcN. | 65 | /sys/class/rtc/rtc0 through /sys/.../rtcN. |
@@ -68,6 +69,7 @@ config RTC_INTF_SYSFS | |||
68 | config RTC_INTF_PROC | 69 | config RTC_INTF_PROC |
69 | boolean "/proc/driver/rtc (procfs for rtcN)" | 70 | boolean "/proc/driver/rtc (procfs for rtcN)" |
70 | depends on PROC_FS | 71 | depends on PROC_FS |
72 | default RTC_CLASS | ||
71 | help | 73 | help |
72 | Say yes here if you want to use your system clock RTC through | 74 | Say yes here if you want to use your system clock RTC through |
73 | the proc interface, /proc/driver/rtc. | 75 | the proc interface, /proc/driver/rtc. |
@@ -79,6 +81,7 @@ config RTC_INTF_PROC | |||
79 | 81 | ||
80 | config RTC_INTF_DEV | 82 | config RTC_INTF_DEV |
81 | boolean "/dev/rtcN (character devices)" | 83 | boolean "/dev/rtcN (character devices)" |
84 | default RTC_CLASS | ||
82 | help | 85 | help |
83 | Say yes here if you want to use your RTCs using the /dev | 86 | Say yes here if you want to use your RTCs using the /dev |
84 | interfaces, which "udev" sets up as /dev/rtc0 through | 87 | interfaces, which "udev" sets up as /dev/rtc0 through |
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index 891cd6c61d0a..4eed51044c5d 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c | |||
@@ -392,6 +392,8 @@ static int dryice_rtc_probe(struct platform_device *pdev) | |||
392 | if (imxdi->ioaddr == NULL) | 392 | if (imxdi->ioaddr == NULL) |
393 | return -ENOMEM; | 393 | return -ENOMEM; |
394 | 394 | ||
395 | spin_lock_init(&imxdi->irq_lock); | ||
396 | |||
395 | imxdi->irq = platform_get_irq(pdev, 0); | 397 | imxdi->irq = platform_get_irq(pdev, 0); |
396 | if (imxdi->irq < 0) | 398 | if (imxdi->irq < 0) |
397 | return imxdi->irq; | 399 | return imxdi->irq; |