usb: Fix warning introduced in f11c89aae2

'usb_power_only' only should exist for USB_FULL_INIT

Change-Id: I23d14477ba55e81048ab29dada8d7d2ee44532b0
This commit is contained in:
Solomon Peachy 2026-07-03 14:45:21 -04:00
parent f11c89aae2
commit a097c23db2

View file

@ -82,7 +82,9 @@ static int usb_state = USB_EXTRACTED;
static int usb_mmc_countdown = 0;
#endif
#if defined(HAVE_USB_POWER) || defined(HAVE_USB_ADB)
#ifdef USB_FULL_INIT
static bool usb_power_only = false;
#endif
static int usb_mode = USBMODE_DEFAULT;
void usb_set_mode(int mode)
{