From 90eef7223e5da9bdc7ad7f823e7748326ba862d2 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 17 Dec 2023 19:09:06 +0900 Subject: [PATCH] Fix condition for SPMI HPM Fixes: 9065c700df73 ("Workaround lack of SPMI support in usb.c") Signed-off-by: Hector Martin --- src/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb.c b/src/usb.c index 683fdc50d..86eedc603 100644 --- a/src/usb.c +++ b/src/usb.c @@ -248,7 +248,7 @@ void usb_init(void) * M3 models do not use i2c, but instead SPMI with a new controller. * We can get USB going for now by just bringing up the phys. */ - if (adt_path_offset(adt, "/arm-io/nub-spmi-a0/hpm0") != 0) { + if (adt_path_offset(adt, "/arm-io/nub-spmi-a0/hpm0") > 0) { usb_spmi_init(); return; }