This patch converts the module to use clk_prepare_enable and
clk_disable_unprepare variants as required by common clock framework.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
                dev_err(&pdev->dev, "failed to get nand clock\n");
                return PTR_ERR(info->clk);
        }
-       clk_enable(info->clk);
+       clk_prepare_enable(info->clk);
 
        /*
         * This is a dirty hack to make this driver work from devicetree
        } else
                kfree(info->data_buff);
 fail_disable_clk:
-       clk_disable(info->clk);
+       clk_disable_unprepare(info->clk);
        return ret;
 }
 
        } else
                kfree(info->data_buff);
 
-       clk_disable(info->clk);
+       clk_disable_unprepare(info->clk);
 
        for (cs = 0; cs < pdata->num_cs; cs++)
                nand_release(info->host[cs]->mtd);