Change-Id: I0d1e02eea2af59d63ea2948e14277aa6ad9955b6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
for (i = 0; i < ARRAY_SIZE(dmc_vop); i++) {
if (dmc_vop[i])
continue;
- dmc_vop[i] = vop;
if (devfreq_vop) {
- dmc_vop[i]->dmc_nb.notifier_call = dmc_notifier_call;
+ vop->dmc_nb.notifier_call = dmc_notifier_call;
devfreq_register_notifier(devfreq_vop,
- &dmc_vop[i]->dmc_nb,
+ &vop->dmc_nb,
DEVFREQ_TRANSITION_NOTIFIER);
}
+ dmc_vop[i] = vop;
break;
}
if (!devfreq_vop)
break;
- devfreq_unregister_notifier(devfreq_vop, &dmc_vop[i]->dmc_nb,
+ devfreq_unregister_notifier(devfreq_vop,
+ &vop->dmc_nb,
DEVFREQ_TRANSITION_NOTIFIER);
break;
}