sh: intc: Confine SH_INTC to platforms that need it
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 20 Aug 2014 13:39:22 +0000 (15:39 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:35 +0000 (11:15 +0100)
commit4362298501996a67f077d8458015467ccf9a4a0f
tree642c5d60768eefd049d960f0fa8763bff7837861
parent63c0a0a7abd539120385d19ea8f1a9553462dc79
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 <geert+renesas@glider.be>
Acked-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit 049d28048be595e0a10a58fe1c104b153c386633)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Conflicts:
arch/arm/mach-shmobile/Kconfig
arch/sh/Kconfig
arch/arm/mach-shmobile/Kconfig
arch/sh/Kconfig
drivers/sh/Makefile
drivers/sh/intc/Kconfig