mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
sh: intc: Confine SH_INTC to platforms that need it
Currently the sh-intc driver is compiled on all SuperH and non-multiplatform SH-Mobile platforms, while it's only used on a limited number of platforms: - SuperH: SH2(A), SH3(A), SH4(A)(L) (all but SH5) - ARM: sh7372, sh73a0 Drop the "default y" on SH_INTC, make all CPU platforms that use it select it, and protect all sub-options by "if SH_INTC" to fix this. Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
This commit is contained in:
parent
7d1311b93e
commit
049d28048b
4 changed files with 11 additions and 3 deletions
|
|
@ -1,8 +1,7 @@
|
|||
#
|
||||
# Makefile for the SuperH specific drivers.
|
||||
#
|
||||
obj-$(CONFIG_SUPERH) += intc/
|
||||
obj-$(CONFIG_ARCH_SHMOBILE_LEGACY) += intc/
|
||||
obj-$(CONFIG_SH_INTC) += intc/
|
||||
ifneq ($(CONFIG_COMMON_CLK),y)
|
||||
obj-$(CONFIG_HAVE_CLK) += clk/
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
config SH_INTC
|
||||
def_bool y
|
||||
bool
|
||||
select IRQ_DOMAIN
|
||||
|
||||
if SH_INTC
|
||||
|
||||
comment "Interrupt controller options"
|
||||
|
||||
config INTC_USERIMASK
|
||||
|
|
@ -37,3 +39,5 @@ config INTC_MAPPING_DEBUG
|
|||
between system IRQs and the per-controller id tables.
|
||||
|
||||
If in doubt, say N.
|
||||
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue