1 // SPDX-License-Identifier: GPL-2.0
2 #include "bcm47xx_private.h"
4 #include <linux/gpio.h>
5 #include <bcm47xx_board.h>
8 static void __init
bcm47xx_workarounds_netgear_wnr3500l(void)
10 const int usb_power
= 12;
13 err
= gpio_request_one(usb_power
, GPIOF_OUT_INIT_HIGH
, "usb_power");
15 pr_err("Failed to request USB power gpio: %d\n", err
);
20 void __init
bcm47xx_workarounds(void)
22 enum bcm47xx_board board
= bcm47xx_board_get();
25 case BCM47XX_BOARD_NETGEAR_WNR3500L
:
26 bcm47xx_workarounds_netgear_wnr3500l();
29 /* No workaround(s) needed */