mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
nvme: assume die 0 if clock-gates not set
Signed-off-by: Mario Hros <git@reversity.org>
This commit is contained in:
parent
8bf08b0ff1
commit
34f49a56fc
1 changed files with 2 additions and 2 deletions
|
@ -304,8 +304,8 @@ bool nvme_init(void)
|
|||
|
||||
u32 cg;
|
||||
if (ADT_GETPROP(adt, node, "clock-gates", &cg) < 0) {
|
||||
printf("nvme: Error getting NVMe clock-gates\n");
|
||||
return NULL;
|
||||
printf("nvme: clock-gates not set\n");
|
||||
cg = 0;
|
||||
}
|
||||
nvme_die = FIELD_GET(PMGR_DIE_ID, cg);
|
||||
printf("nvme: ANS is on die %d\n", nvme_die);
|
||||
|
|
Loading…
Reference in a new issue