[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181112104942.765456f7@endymion>
Date: Mon, 12 Nov 2018 10:49:42 +0100
From: Jean Delvare <jdelvare@...e.de>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Radu Pirea <radu.pirea@...rochip.com>,
Lee Jones <lee.jones@...aro.org>
Subject: [PATCH] mfd: at91-usart: Add platform dependency
It doesn't make sense to present option MFD_AT91_USART by default if
not building an AT91 kernel, as the drivers which depend on it are
not available.
Signed-off-by: Jean Delvare <jdelvare@...e.de>
Fixes: 7d3aa342cef7 ("mfd: at91-usart: Add MFD driver for USART")
Cc: Radu Pirea <radu.pirea@...rochip.com>
Cc: Lee Jones <lee.jones@...aro.org>
---
As a side note, maybe it would make sense to have SPI_AT91_USART
select MFD_AT91_USART instead of depend on it, so that
MFD_AT91_USART could be hidden?
drivers/mfd/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-4.20-rc2.orig/drivers/mfd/Kconfig 2018-11-12 09:34:20.096038788 +0100
+++ linux-4.20-rc2/drivers/mfd/Kconfig 2018-11-12 10:39:51.102170181 +0100
@@ -102,6 +102,7 @@ config MFD_AAT2870_CORE
config MFD_AT91_USART
tristate "AT91 USART Driver"
select MFD_CORE
+ depends on ARCH_AT91 || COMPILE_TEST
help
Select this to get support for AT91 USART IP. This is a wrapper
over at91-usart-serial driver and usart-spi-driver. Only one function
--
Jean Delvare
SUSE L3 Support
Powered by blists - more mailing lists