File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2944,10 +2944,8 @@ static int wcd937x_probe(struct platform_device *pdev)
2944
2944
return dev_err_probe (dev , ret , "Failed to get supplies\n" );
2945
2945
2946
2946
ret = regulator_bulk_enable (WCD937X_MAX_BULK_SUPPLY , wcd937x -> supplies );
2947
- if (ret ) {
2948
- regulator_bulk_free (WCD937X_MAX_BULK_SUPPLY , wcd937x -> supplies );
2947
+ if (ret )
2949
2948
return dev_err_probe (dev , ret , "Failed to enable supplies\n" );
2950
- }
2951
2949
2952
2950
wcd937x_dt_parse_micbias_info (dev , wcd937x );
2953
2951
@@ -2983,7 +2981,6 @@ static int wcd937x_probe(struct platform_device *pdev)
2983
2981
2984
2982
err_disable_regulators :
2985
2983
regulator_bulk_disable (WCD937X_MAX_BULK_SUPPLY , wcd937x -> supplies );
2986
- regulator_bulk_free (WCD937X_MAX_BULK_SUPPLY , wcd937x -> supplies );
2987
2984
2988
2985
return ret ;
2989
2986
}
@@ -3000,7 +2997,6 @@ static void wcd937x_remove(struct platform_device *pdev)
3000
2997
pm_runtime_dont_use_autosuspend (dev );
3001
2998
3002
2999
regulator_bulk_disable (WCD937X_MAX_BULK_SUPPLY , wcd937x -> supplies );
3003
- regulator_bulk_free (WCD937X_MAX_BULK_SUPPLY , wcd937x -> supplies );
3004
3000
}
3005
3001
3006
3002
#if defined(CONFIG_OF )
You can’t perform that action at this time.
0 commit comments