Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46af90d7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: Fix error handling in PIL driver probe"

parents ba2a9ed6 374bde1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1609,7 +1609,7 @@ static int __get_smem_state(struct subsys_desc *desc, const char *prop,
		desc->state = qcom_smem_state_get(desc->dev, prop, smem_bit);
		if (IS_ERR_OR_NULL(desc->state)) {
			pr_err("Could not get smem-states %s\n", prop);
			return -ENXIO;
			return PTR_ERR(desc->state);
		}
		return 0;
	}
@@ -1914,6 +1914,7 @@ struct subsys_device *subsys_register(struct subsys_desc *desc)
	if (ofnode)
		subsys_remove_restart_order(ofnode);
err_register:
	subsys_char_device_remove(subsys);
	device_unregister(&subsys->dev);
	return ERR_PTR(ret);
}