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

Commit 3205cde5 authored by Benet Clark's avatar Benet Clark
Browse files

msm: mdss: Use correct error checking for mdss bus scale register



Previously, we were checking the error value for mdss bus_scale_register
incorrectly. Now we check the error value for null rather than a negative
value.

Change-Id: If7fda0584df82d6c007829f2e63af9b735cafb7e
Signed-off-by: default avatarBenet Clark <benetc@codeaurora.org>
parent b97d19d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ static int mdss_mdp_bus_scale_register(struct mdss_data_type *mdata)
	if (!mdata->bus_hdl) {
		mdata->bus_hdl =
			msm_bus_scale_register_client(mdata->bus_scale_table);
		if (IS_ERR_VALUE(mdata->bus_hdl)) {
		if (!mdata->bus_hdl) {
			pr_err("bus_client register failed\n");
			return -EINVAL;
		}