File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,6 @@ static SIMPLE_DEV_PM_OPS(s3c24xx_dclk_pm_ops,
238
238
static int s3c24xx_dclk_probe (struct platform_device * pdev )
239
239
{
240
240
struct s3c24xx_dclk * s3c24xx_dclk ;
241
- struct resource * mem ;
242
241
struct s3c24xx_dclk_drv_data * dclk_variant ;
243
242
struct clk_hw * * clk_table ;
244
243
int ret , i ;
@@ -257,8 +256,7 @@ static int s3c24xx_dclk_probe(struct platform_device *pdev)
257
256
platform_set_drvdata (pdev , s3c24xx_dclk );
258
257
spin_lock_init (& s3c24xx_dclk -> dclk_lock );
259
258
260
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
261
- s3c24xx_dclk -> base = devm_ioremap_resource (& pdev -> dev , mem );
259
+ s3c24xx_dclk -> base = devm_platform_ioremap_resource (pdev , 0 );
262
260
if (IS_ERR (s3c24xx_dclk -> base ))
263
261
return PTR_ERR (s3c24xx_dclk -> base );
264
262
You can’t perform that action at this time.
0 commit comments