File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -661,24 +661,17 @@ static int pxa_gpio_probe(struct platform_device *pdev)
661
661
if (IS_ERR (gpio_reg_base ))
662
662
return PTR_ERR (gpio_reg_base );
663
663
664
- clk = clk_get (& pdev -> dev , NULL );
664
+ clk = devm_clk_get_enabled (& pdev -> dev , NULL );
665
665
if (IS_ERR (clk )) {
666
666
dev_err (& pdev -> dev , "Error %ld to get gpio clock\n" ,
667
667
PTR_ERR (clk ));
668
668
return PTR_ERR (clk );
669
669
}
670
- ret = clk_prepare_enable (clk );
671
- if (ret ) {
672
- clk_put (clk );
673
- return ret ;
674
- }
675
670
676
671
/* Initialize GPIO chips */
677
672
ret = pxa_init_gpio_chip (pchip , pxa_last_gpio + 1 , gpio_reg_base );
678
- if (ret ) {
679
- clk_put (clk );
673
+ if (ret )
680
674
return ret ;
681
- }
682
675
683
676
/* clear all GPIO edge detects */
684
677
for_each_gpio_bank (gpio , c , pchip ) {
You can’t perform that action at this time.
0 commit comments