Skip to content

Commit

Permalink
From patchwork series 357978
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox Snowpatch committed Jun 3, 2023
1 parent a87fe4b commit e7c5aae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/powernv/opal-elog.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,12 @@ int __init opal_elog_init(void)

/* ELOG not supported by firmware */
if (!opal_check_token(OPAL_ELOG_READ))
return -1;
return -EPERM;

elog_kset = kset_create_and_add("elog", NULL, opal_kobj);
if (!elog_kset) {
pr_warn("%s: failed to create elog kset\n", __func__);
return -1;
return -EPERM;
}

irq = opal_event_request(ilog2(OPAL_EVENT_ERROR_LOG_AVAIL));
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/powernv/opal-xscom.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static int scom_debug_init_one(struct dentry *root, struct device_node *dn,
if (!dir) {
kfree(ent->path.data);
kfree(ent);
return -1;
return -EPERM;
}

debugfs_create_blob("devspec", 0400, dir, &ent->path);
Expand All @@ -191,7 +191,7 @@ static int scom_debug_init(void)

root = debugfs_create_dir("scom", arch_debugfs_dir);
if (!root)
return -1;
return -EPERM;

rc = 0;
for_each_node_with_property(dn, "scom-controller") {
Expand Down

0 comments on commit e7c5aae

Please sign in to comment.