pinctrl: bcm283x: DM_FLAG_PRE_RELOC: Remove OF_CONTROL check
authorOvidiu Panait <ovidiu.panait@windriver.com>
Tue, 29 Sep 2020 17:27:11 +0000 (20:27 +0300)
committerMatthias Brugger <mbrugger@suse.com>
Fri, 2 Oct 2020 15:32:28 +0000 (17:32 +0200)
Remove CONFIG_IS_ENABLED(OF_CONTROL) check from DM_FLAG_PRE_RELOC, since
this driver only supports OF_CONTROL.

drivers/pinctrl/broadcom/Kconfig:
config PINCTRL_BCM283X
    depends on ARCH_BCM283X && PINCTRL_FULL && OF_CONTROL

Cc: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
drivers/pinctrl/broadcom/pinctrl-bcm283x.c

index c22d534..9eaf56a 100644 (file)
@@ -150,7 +150,7 @@ U_BOOT_DRIVER(pinctrl_bcm283x) = {
        .priv_auto_alloc_size = sizeof(struct bcm283x_pinctrl_priv),
        .ops            = &bcm283x_pinctrl_ops,
        .probe          = bcm283x_pinctl_probe,
-#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
+#if CONFIG_IS_ENABLED(OF_BOARD)
        .flags          = DM_FLAG_PRE_RELOC,
 #endif
 };