[PATCH v1 6/7] MIPS: BCM63XX: Open code gpio_request_one()

From: Andy Shevchenko

Date: Wed Jul 15 2026 - 14:52:23 EST


Open code the gpio_request_one() call to be able to kill that API
in the follow changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
arch/mips/bcm63xx/boards/board_bcm963xx.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c
index 57e916c06792..993341604439 100644
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -903,8 +903,11 @@ int __init board_register_devices(void)

platform_device_register(&bcm63xx_gpio_leds);

- if (board.ephy_reset_gpio)
- gpio_request_one(board.ephy_reset_gpio, GPIOF_OUT_INIT_HIGH, "ephy-reset");
+ if (board.ephy_reset_gpio) {
+ gpio_request(board.ephy_reset_gpio, "ephy-reset");
+ gpio_direction_output(board.ephy_reset_gpio, 1);
+ gpio_free(board.ephy_reset_gpio);
+ }

return 0;
}
--
2.50.1