aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/alchemy/board-mtx1.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-31 18:19:03 +0100
committerRalf Baechle <ralf@linux-mips.org>2012-07-23 13:55:53 +0100
commit4bd5a5740e9cb20b63763b8b5dd04a51fba09029 (patch)
tree27b06b627493d76d9ec720f2dbbb0ca48d621d0c /arch/mips/alchemy/board-mtx1.c
parent889a4c7b33607bf03c04b8f2d5607fd4274f47f3 (diff)
MIPS: Alchemy: use IS_ENABLED() macro
Signed-off-by: Florian Fainelli <florian@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3331/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/board-mtx1.c')
-rw-r--r--arch/mips/alchemy/board-mtx1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/alchemy/board-mtx1.c b/arch/mips/alchemy/board-mtx1.c
index 295f1a95f74..99969484c47 100644
--- a/arch/mips/alchemy/board-mtx1.c
+++ b/arch/mips/alchemy/board-mtx1.c
@@ -81,10 +81,10 @@ static void mtx1_power_off(void)
void __init board_setup(void)
{
-#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
+#if IS_ENABLED(CONFIG_USB_OHCI_HCD)
/* Enable USB power switch */
alchemy_gpio_direction_output(204, 0);
-#endif /* defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) */
+#endif /* IS_ENABLED(CONFIG_USB_OHCI_HCD) */
/* Initialize sys_pinfunc */
au_writel(SYS_PF_NI2, SYS_PINFUNC);