From 055d775be6fb00e461bd14b3267e80bcc2888744 Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Tue, 16 Feb 2016 16:41:23 -0200 Subject: [PATCH] rtc: Remove default value from platform-specific options This patch removes the default value from some platform/SoC specific options which are declared in drivers/rtc/Kconfig because 1) most of the time they are not valid values and 2) the correct values are already set in the SoC Kconfig (e.g. arch/x86/soc/quark_d2000/Kconfig). For Quark D2000, the RTC_IRQ_PRI default value is set to '0' since the priority information is ignored by the interrupt registering system (the interrupt vectors are fixed in this SoC). Change-Id: I70de889cfd22e65f0e7acf7e57ddc6439f028394 Signed-off-by: Andre Guedes --- arch/x86/soc/quark_d2000/Kconfig | 2 ++ arch/x86/soc/quark_se/Kconfig | 2 ++ drivers/rtc/Kconfig | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/soc/quark_d2000/Kconfig b/arch/x86/soc/quark_d2000/Kconfig index 79df95e50a4..da30da6dc49 100644 --- a/arch/x86/soc/quark_d2000/Kconfig +++ b/arch/x86/soc/quark_d2000/Kconfig @@ -171,6 +171,8 @@ endif # WATCHDOG if RTC config RTC_IRQ default 2 +config RTC_IRQ_PRI + default 0 config RTC_DW def_bool y diff --git a/arch/x86/soc/quark_se/Kconfig b/arch/x86/soc/quark_se/Kconfig index 43f362fd9de..6c939fdd6d7 100644 --- a/arch/x86/soc/quark_se/Kconfig +++ b/arch/x86/soc/quark_se/Kconfig @@ -261,6 +261,8 @@ endif # WATCHDOG if RTC config RTC_IRQ default 11 +config RTC_IRQ_PRI + default 2 config RTC_DW def_bool y diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 20519b2785a..3a651a3d1cc 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -29,13 +29,11 @@ if RTC config RTC_IRQ int "Interrupt number" - default 0 help RTC interrupt number config RTC_IRQ_PRI int "Interrupt priority" - default 2 help RTC interrupt priority. @@ -81,7 +79,6 @@ config RTC_DW_CLOCK_GATE_SUBSYS config RTC_DW_BASE_ADDR hex "Base address" depends on RTC_DW - default 0x00000000 help Base address to access RTC DesignWare controller registers