File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1116,6 +1116,11 @@ static int spi_geni_probe(struct platform_device *pdev)
1116
1116
init_completion (& mas -> tx_reset_done );
1117
1117
init_completion (& mas -> rx_reset_done );
1118
1118
spin_lock_init (& mas -> lock );
1119
+
1120
+ ret = geni_icc_get (& mas -> se , NULL );
1121
+ if (ret )
1122
+ return ret ;
1123
+
1119
1124
pm_runtime_use_autosuspend (& pdev -> dev );
1120
1125
pm_runtime_set_autosuspend_delay (& pdev -> dev , 250 );
1121
1126
ret = devm_pm_runtime_enable (dev );
@@ -1125,9 +1130,6 @@ static int spi_geni_probe(struct platform_device *pdev)
1125
1130
if (device_property_read_bool (& pdev -> dev , "spi-slave" ))
1126
1131
spi -> target = true;
1127
1132
1128
- ret = geni_icc_get (& mas -> se , NULL );
1129
- if (ret )
1130
- return ret ;
1131
1133
/* Set the bus quota to a reasonable value for register access */
1132
1134
mas -> se .icc_paths [GENI_TO_CORE ].avg_bw = Bps_to_icc (CORE_2X_50_MHZ );
1133
1135
mas -> se .icc_paths [CPU_TO_GENI ].avg_bw = GENI_DEFAULT_BW ;
You can’t perform that action at this time.
0 commit comments