File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,12 @@ static int i2s_pll_clk_probe(struct platform_device *pdev)
172
172
struct clk * clk ;
173
173
struct i2s_pll_clk * pll_clk ;
174
174
struct clk_init_data init ;
175
- struct resource * mem ;
176
175
177
176
pll_clk = devm_kzalloc (dev , sizeof (* pll_clk ), GFP_KERNEL );
178
177
if (!pll_clk )
179
178
return - ENOMEM ;
180
179
181
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
182
- pll_clk -> base = devm_ioremap_resource (dev , mem );
180
+ pll_clk -> base = devm_platform_ioremap_resource (pdev , 0 );
183
181
if (IS_ERR (pll_clk -> base ))
184
182
return PTR_ERR (pll_clk -> base );
185
183
Original file line number Diff line number Diff line change @@ -221,21 +221,18 @@ static int axs10x_pll_clk_probe(struct platform_device *pdev)
221
221
struct device * dev = & pdev -> dev ;
222
222
const char * parent_name ;
223
223
struct axs10x_pll_clk * pll_clk ;
224
- struct resource * mem ;
225
224
struct clk_init_data init = { };
226
225
int ret ;
227
226
228
227
pll_clk = devm_kzalloc (dev , sizeof (* pll_clk ), GFP_KERNEL );
229
228
if (!pll_clk )
230
229
return - ENOMEM ;
231
230
232
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
233
- pll_clk -> base = devm_ioremap_resource (dev , mem );
231
+ pll_clk -> base = devm_platform_ioremap_resource (pdev , 0 );
234
232
if (IS_ERR (pll_clk -> base ))
235
233
return PTR_ERR (pll_clk -> base );
236
234
237
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 1 );
238
- pll_clk -> lock = devm_ioremap_resource (dev , mem );
235
+ pll_clk -> lock = devm_platform_ioremap_resource (pdev , 1 );
239
236
if (IS_ERR (pll_clk -> lock ))
240
237
return PTR_ERR (pll_clk -> lock );
241
238
You can’t perform that action at this time.
0 commit comments