File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -429,22 +429,12 @@ static int faraday_pci_probe(struct platform_device *pdev)
429
429
p -> dev = dev ;
430
430
431
431
/* Retrieve and enable optional clocks */
432
- clk = devm_clk_get (dev , "PCLK" );
432
+ clk = devm_clk_get_enabled (dev , "PCLK" );
433
433
if (IS_ERR (clk ))
434
434
return PTR_ERR (clk );
435
- ret = clk_prepare_enable (clk );
436
- if (ret ) {
437
- dev_err (dev , "could not prepare PCLK\n" );
438
- return ret ;
439
- }
440
- p -> bus_clk = devm_clk_get (dev , "PCICLK" );
435
+ p -> bus_clk = devm_clk_get_enabled (dev , "PCICLK" );
441
436
if (IS_ERR (p -> bus_clk ))
442
437
return PTR_ERR (p -> bus_clk );
443
- ret = clk_prepare_enable (p -> bus_clk );
444
- if (ret ) {
445
- dev_err (dev , "could not prepare PCICLK\n" );
446
- return ret ;
447
- }
448
438
449
439
p -> base = devm_platform_ioremap_resource (pdev , 0 );
450
440
if (IS_ERR (p -> base ))
You can’t perform that action at this time.
0 commit comments