Skip to content

Commit

Permalink
Fix condition for SPMI HPM
Browse files Browse the repository at this point in the history
Fixes: 9065c70 ("Workaround lack of SPMI support in usb.c")
Signed-off-by: Hector Martin <[email protected]>
  • Loading branch information
marcan committed Dec 17, 2023
1 parent 11b9d44 commit 90eef72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 90eef72

Please sign in to comment.