misc: Fix always compiling MISC even for SPL/TPL
authorSean Anderson <sean.anderson@seco.com>
Fri, 22 Apr 2022 20:11:37 +0000 (16:11 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 10 May 2022 13:51:50 +0000 (09:51 -0400)
commit381277410d72b6081db8412024b9d5496b4bafd1
tree9a3dfe7faca39ccf7f3b1bd4fb5946c46edb99f8
parentf6973cce6af066d28980c9f82c99cb4e10af8a6f
misc: Fix always compiling MISC even for SPL/TPL

We should only build support for misc if the appropriate SPL/TPL symbol
is defined. To ease the transition, make SPL/TPL_MISC default to MISC.
This is necessary because many drivers don't specify their dependencies
properly. These defaults can be removed once all drivers depend on the
appropriate config.

Fixes: aaba703fd0 ("spl: misc: Allow misc drivers in SPL and TPL")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
[trini: Add VPL_MISC symbol, handle like SPL/TPL_MISC]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/misc/Kconfig
drivers/misc/Makefile