02f8b6c5622604251132f1d7b69f55987372d9d9
[openwrt/staging/wigyori.git] /
1 From 7af526c740bdbd5b4dcebba04ace5b3b0c07801f Mon Sep 17 00:00:00 2001
2 From: Geert Uytterhoeven <geert+renesas@glider.be>
3 Date: Tue, 14 Sep 2021 11:29:49 +0200
4 Subject: [PATCH] nvmem: NVMEM_NINTENDO_OTP should depend on WII
5
6 The Nintendo Wii and Wii U OTP is only present on Nintendo Wii and Wii U
7 consoles. Hence add a dependency on WII, to prevent asking the user
8 about this driver when configuring a kernel without Nintendo Wii and Wii
9 U console support.
10
11 Fixes: 3683b761fe3a10ad ("nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP")
12 Reviewed-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
13 Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
14 Link: https://lore.kernel.org/r/01318920709dddc4d85fe895e2083ca0eee234d8.1631611652.git.geert+renesas@glider.be
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17 drivers/nvmem/Kconfig | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/drivers/nvmem/Kconfig
21 +++ b/drivers/nvmem/Kconfig
22 @@ -109,6 +109,7 @@ config MTK_EFUSE
23
24 config NVMEM_NINTENDO_OTP
25 tristate "Nintendo Wii and Wii U OTP Support"
26 + depends on WII || COMPILE_TEST
27 help
28 This is a driver exposing the OTP of a Nintendo Wii or Wii U console.
29