diff options
Diffstat (limited to 'drivers/clk/clk-pwm.c')
-rw-r--r-- | drivers/clk/clk-pwm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/clk/clk-pwm.c b/drivers/clk/clk-pwm.c index 1630a1f085f7..8cb9d117fdbf 100644 --- a/drivers/clk/clk-pwm.c +++ b/drivers/clk/clk-pwm.c | |||
@@ -61,7 +61,6 @@ static int clk_pwm_probe(struct platform_device *pdev) | |||
61 | struct pwm_device *pwm; | 61 | struct pwm_device *pwm; |
62 | struct pwm_args pargs; | 62 | struct pwm_args pargs; |
63 | const char *clk_name; | 63 | const char *clk_name; |
64 | struct clk *clk; | ||
65 | int ret; | 64 | int ret; |
66 | 65 | ||
67 | clk_pwm = devm_kzalloc(&pdev->dev, sizeof(*clk_pwm), GFP_KERNEL); | 66 | clk_pwm = devm_kzalloc(&pdev->dev, sizeof(*clk_pwm), GFP_KERNEL); |
@@ -107,11 +106,11 @@ static int clk_pwm_probe(struct platform_device *pdev) | |||
107 | 106 | ||
108 | clk_pwm->pwm = pwm; | 107 | clk_pwm->pwm = pwm; |
109 | clk_pwm->hw.init = &init; | 108 | clk_pwm->hw.init = &init; |
110 | clk = devm_clk_register(&pdev->dev, &clk_pwm->hw); | 109 | ret = devm_clk_hw_register(&pdev->dev, &clk_pwm->hw); |
111 | if (IS_ERR(clk)) | 110 | if (ret) |
112 | return PTR_ERR(clk); | 111 | return ret; |
113 | 112 | ||
114 | return of_clk_add_provider(node, of_clk_src_simple_get, clk); | 113 | return of_clk_add_hw_provider(node, of_clk_hw_simple_get, &clk_pwm->hw); |
115 | } | 114 | } |
116 | 115 | ||
117 | static int clk_pwm_remove(struct platform_device *pdev) | 116 | static int clk_pwm_remove(struct platform_device *pdev) |