Change the notify events listened to from RK_CLK_PD_PRE_ENABLE/DISABLE
to RK_CLK_PD_PREPARE/UNPREPARE.
static int ddrfreq_clk_event(int status, unsigned long event)
{
switch (event) {
- case RK_CLK_PD_PRE_ENABLE:
+ case RK_CLK_PD_PREPARE:
ddrfreq_set_sys_status(status);
break;
- case RK_CLK_PD_POST_DISABLE:
+ case RK_CLK_PD_UNPREPARE:
ddrfreq_clear_sys_status(status);
break;
}
static int clk_pd_vio_notifier_call(struct notifier_block *nb, unsigned long event, void *ptr)
{
switch (event) {
- case RK_CLK_PD_PRE_ENABLE:
+ case RK_CLK_PD_PREPARE:
if (aclk_vio1_dvfs_node)
clk_enable_dvfs(aclk_vio1_dvfs_node);
break;
- case RK_CLK_PD_POST_DISABLE:
+ case RK_CLK_PD_UNPREPARE:
if (aclk_vio1_dvfs_node)
clk_disable_dvfs(aclk_vio1_dvfs_node);
break;