Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1d7f41c authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle
Browse files

MIPS: PNX833x: use IS_ENABLED() macro



Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3332/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 4bd5a574
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -91,7 +91,7 @@ void __init pnx833x_board_setup(void)
	pnx833x_gpio_select_function_alt(32);
	pnx833x_gpio_select_function_alt(32);
	pnx833x_gpio_select_function_alt(33);
	pnx833x_gpio_select_function_alt(33);


#if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
#if IS_ENABLED(CONFIG_MTD_NAND_PLATFORM)
	/* Setup MIU for NAND access on CS0...
	/* Setup MIU for NAND access on CS0...
	 *
	 *
	 * (it seems that we must also configure CS1 for reliable operation,
	 * (it seems that we must also configure CS1 for reliable operation,
@@ -117,7 +117,7 @@ void __init pnx833x_board_setup(void)
	pnx833x_gpio_select_output(5);
	pnx833x_gpio_select_output(5);
	pnx833x_gpio_write(1, 5);
	pnx833x_gpio_write(1, 5);


#elif defined(CONFIG_MTD_CFI) || defined(CONFIG_MTD_CFI_MODULE)
#elif IS_ENABLED(CONFIG_MTD_CFI)


	/* Set up MIU for 16-bit NOR access on CS0 and CS1... */
	/* Set up MIU for 16-bit NOR access on CS0 and CS1... */