mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-25 08:00:17 +00:00
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:
parent
11b9d4475b
commit
90eef7223e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue