File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,6 @@ static const struct pwm_ops bcm2835_pwm_ops = {
124
124
.apply = bcm2835_pwm_apply ,
125
125
};
126
126
127
- static void devm_clk_rate_exclusive_put (void * data )
128
- {
129
- struct clk * clk = data ;
130
-
131
- clk_rate_exclusive_put (clk );
132
- }
133
-
134
127
static int bcm2835_pwm_probe (struct platform_device * pdev )
135
128
{
136
129
struct device * dev = & pdev -> dev ;
@@ -152,16 +145,11 @@ static int bcm2835_pwm_probe(struct platform_device *pdev)
152
145
return dev_err_probe (dev , PTR_ERR (pc -> clk ),
153
146
"clock not found\n" );
154
147
155
- ret = clk_rate_exclusive_get ( pc -> clk );
148
+ ret = devm_clk_rate_exclusive_get ( dev , pc -> clk );
156
149
if (ret )
157
150
return dev_err_probe (dev , ret ,
158
151
"fail to get exclusive rate\n" );
159
152
160
- ret = devm_add_action_or_reset (dev , devm_clk_rate_exclusive_put ,
161
- pc -> clk );
162
- if (ret )
163
- return ret ;
164
-
165
153
pc -> rate = clk_get_rate (pc -> clk );
166
154
if (!pc -> rate )
167
155
return dev_err_probe (dev , - EINVAL ,
You can’t perform that action at this time.
0 commit comments