Skip to content

Commit

Permalink
fixup! cpuidle: apple: Prevent load on pre-t8103 platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Aug 31, 2024
1 parent 20c1cd0 commit 32be8bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/cpuidle/cpuidle-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ static int __init apple_cpuidle_init(void)
if (ret)
return ret;

if (!of_machine_is_compatible("apple,arm-platform") &&
of_machine_is_compatible("apple,t8015") &&
of_machine_is_compatible("apple,t8010") &&
of_machine_is_compatible("apple,s8000") &&
if (!of_machine_is_compatible("apple,arm-platform") ||
of_machine_is_compatible("apple,t8015") ||
of_machine_is_compatible("apple,t8010") ||
of_machine_is_compatible("apple,s8000") ||
of_machine_is_compatible("apple,t7000"))
return 0;

Expand Down

0 comments on commit 32be8bc

Please sign in to comment.