diff options
author | Ingo Molnar <mingo@kernel.org> | 2023-01-26 11:42:56 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-01-26 11:46:29 +0100 |
commit | 6397859c8e9d87190f49dabbb835114ad0ea9fcb (patch) | |
tree | 1d6bf48d035182fce3c6329e5e69d756f9bcb2ad /drivers/firmware/psci/psci.c | |
parent | 4282494a20cdcaf38d553f2c2ff6f252084f979c (diff) | |
parent | 2241ab53cbb5cdb08a6b2d4688feb13971058f65 (diff) |
Merge tag 'v6.2-rc5' into locking/core, to pick up fixes
Refresh this branch with the latest locking fixes, before
applying a new series of changes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/firmware/psci/psci.c')
-rw-r--r-- | drivers/firmware/psci/psci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c index e7bcfca4159f..447ee4ea5c90 100644 --- a/drivers/firmware/psci/psci.c +++ b/drivers/firmware/psci/psci.c @@ -440,6 +440,9 @@ static const struct file_operations psci_debugfs_ops = { static int __init psci_debugfs_init(void) { + if (!invoke_psci_fn || !psci_ops.get_version) + return 0; + return PTR_ERR_OR_ZERO(debugfs_create_file("psci", 0444, NULL, NULL, &psci_debugfs_ops)); } |