Fix condition for SPMI HPM

Fixes: 9065c700df ("Workaround lack of SPMI support in usb.c")
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-12-17 19:09:06 +09:00
parent 11b9d4475b
commit 90eef7223e

View file

@ -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;
}