Skip to content

Commit 90eef72

Browse files
committed
Fix condition for SPMI HPM
Fixes: 9065c70 ("Workaround lack of SPMI support in usb.c") Signed-off-by: Hector Martin <[email protected]>
1 parent 11b9d44 commit 90eef72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void usb_init(void)
248248
* M3 models do not use i2c, but instead SPMI with a new controller.
249249
* We can get USB going for now by just bringing up the phys.
250250
*/
251-
if (adt_path_offset(adt, "/arm-io/nub-spmi-a0/hpm0") != 0) {
251+
if (adt_path_offset(adt, "/arm-io/nub-spmi-a0/hpm0") > 0) {
252252
usb_spmi_init();
253253
return;
254254
}

0 commit comments

Comments
 (0)