dss_mgr_enable() has some extra assigns to mp->enabled, which can be
removed.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
spin_lock_irqsave(&data_lock, flags);
mp->enabled = true;
+
r = dss_check_settings(mgr, mgr->device);
- mp->enabled = false;
if (r) {
DSSERR("failed to enable manager %d: check_settings failed\n",
mgr->id);
goto err;
}
- mp->enabled = true;
-
dss_mgr_setup_fifos(mgr);
dss_write_regs();
return 0;
err:
+ mp->enabled = false;
spin_unlock_irqrestore(&data_lock, flags);
mutex_unlock(&apply_lock);
return r;