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

Commit 2a2f6408 authored by Colin Cross's avatar Colin Cross Committed by Gerrit Code Review
Browse files

Merge "autosuspend_inited flag set even if initialization fails"

parents a649fafb a26b4caf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,8 +33,6 @@ static int autosuspend_init(void)
        return 0;
    }

    autosuspend_inited = true;

    autosuspend_ops = autosuspend_earlysuspend_init();
    if (autosuspend_ops) {
        goto out;
@@ -56,6 +54,8 @@ static int autosuspend_init(void)
    }

out:
    autosuspend_inited = true;

    ALOGV("autosuspend initialized\n");
    return 0;
}