diff mbox series

[-next] pinctrl: pinctrl-microchip-sgpio: Add OF config dependency

Message ID 20201125122014.11237-1-lars.povlsen@microchip.com (mailing list archive)
State New, archived
Headers show
Series [-next] pinctrl: pinctrl-microchip-sgpio: Add OF config dependency | expand

Commit Message

Lars Povlsen Nov. 25, 2020, 12:20 p.m. UTC
The pinctrl-microchip-sgpio driver needs OF support, so add that to
Kconfig.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
---
 drivers/pinctrl/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Randy Dunlap Nov. 25, 2020, 4:57 p.m. UTC | #1
On 11/25/20 4:20 AM, Lars Povlsen wrote:
> The pinctrl-microchip-sgpio driver needs OF support, so add that to
> Kconfig.
> 
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> ---
>  drivers/pinctrl/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
> index 9b8ed7516355..94e49da49f5c 100644
> --- a/drivers/pinctrl/Kconfig
> +++ b/drivers/pinctrl/Kconfig
> @@ -376,11 +376,13 @@ config PINCTRL_OCELOT
>  
>  config PINCTRL_MICROCHIP_SGPIO
>  	bool "Pinctrl driver for Microsemi/Microchip Serial GPIO"
> +	depends on OF
>  	depends on HAS_IOMEM
>  	select GPIOLIB
>  	select GENERIC_PINCONF
>  	select GENERIC_PINCTRL_GROUPS
>  	select GENERIC_PINMUX_FUNCTIONS
> +	select OF_GPIO
>  	help
>  	  Support for the serial GPIO interface used on Microsemi and
>  	  Microchip SoC's. By using a serial interface, the SIO
>
Linus Walleij Dec. 1, 2020, 11:12 p.m. UTC | #2
On Wed, Nov 25, 2020 at 1:20 PM Lars Povlsen <lars.povlsen@microchip.com> wrote:

> The pinctrl-microchip-sgpio driver needs OF support, so add that to
> Kconfig.
>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>

Patch applied!

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 9b8ed7516355..94e49da49f5c 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -376,11 +376,13 @@  config PINCTRL_OCELOT
 
 config PINCTRL_MICROCHIP_SGPIO
 	bool "Pinctrl driver for Microsemi/Microchip Serial GPIO"
+	depends on OF
 	depends on HAS_IOMEM
 	select GPIOLIB
 	select GENERIC_PINCONF
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
+	select OF_GPIO
 	help
 	  Support for the serial GPIO interface used on Microsemi and
 	  Microchip SoC's. By using a serial interface, the SIO