struct clk *p;
struct clk *c;
- p = clk_get(&pdev->dev, parent);
+ p = devm_clk_get(&pdev->dev, parent);
if (IS_ERR(p)) {
pr_err("%s: could not lookup clock : %s\n", __func__, parent);
return -EINVAL;
}
- c = clk_get(&pdev->dev, child);
+ c = devm_clk_get(&pdev->dev, child);
if (IS_ERR(c)) {
pr_err("%s: could not lookup clock : %s\n", __func__, child);
return -EINVAL;
{
struct clk *target;
- target = clk_get(&pdev->dev, conid);
+ target = devm_clk_get(&pdev->dev, conid);
if (IS_ERR(target)) {
pr_err("%s: could not lookup clock : %s\n", __func__, conid);
return -EINVAL;
struct clk *target;
unsigned int rate_target;
- target = clk_get(&pdev->dev, conid);
+ target = devm_clk_get(&pdev->dev, conid);
if (IS_ERR(target)) {
pr_err("%s: could not lookup clock : %s\n", __func__, conid);
return -EINVAL;
{
struct clk *target;
- target = clk_get(&pdev->dev, conid);
+ target = devm_clk_get(&pdev->dev, conid);
if (IS_ERR(target)) {
pr_err("%s: could not lookup clock : %s\n", __func__, conid);
return -EINVAL;
{
struct clk *target;
- target = clk_get(&pdev->dev, conid);
+ target = devm_clk_get(&pdev->dev, conid);
if (IS_ERR(target)) {
pr_err("%s: could not lookup clock : %s\n", __func__, conid);
}