File tree Expand file tree Collapse file tree 4 files changed +2
-23
lines changed Expand file tree Collapse file tree 4 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -774,8 +774,6 @@ int renesas_sdhi_probe(struct platform_device *pdev,
774
774
/* All SDHI have SDIO status bits which must be 1 */
775
775
mmc_data -> flags |= TMIO_MMC_SDIO_STATUS_SETBITS ;
776
776
777
- pm_runtime_enable (& pdev -> dev );
778
-
779
777
ret = renesas_sdhi_clk_enable (host );
780
778
if (ret )
781
779
goto efree ;
@@ -856,8 +854,6 @@ int renesas_sdhi_probe(struct platform_device *pdev,
856
854
efree :
857
855
tmio_mmc_host_free (host );
858
856
859
- pm_runtime_disable (& pdev -> dev );
860
-
861
857
return ret ;
862
858
}
863
859
EXPORT_SYMBOL_GPL (renesas_sdhi_probe );
@@ -869,8 +865,6 @@ int renesas_sdhi_remove(struct platform_device *pdev)
869
865
tmio_mmc_host_remove (host );
870
866
renesas_sdhi_clk_disable (host );
871
867
872
- pm_runtime_disable (& pdev -> dev );
873
-
874
868
return 0 ;
875
869
}
876
870
EXPORT_SYMBOL_GPL (renesas_sdhi_remove );
Original file line number Diff line number Diff line change @@ -172,8 +172,6 @@ static int tmio_mmc_probe(struct platform_device *pdev)
172
172
host -> mmc -> f_max = pdata -> hclk ;
173
173
host -> mmc -> f_min = pdata -> hclk / 512 ;
174
174
175
- pm_runtime_enable (& pdev -> dev );
176
-
177
175
ret = tmio_mmc_host_probe (host );
178
176
if (ret )
179
177
goto host_free ;
@@ -193,7 +191,6 @@ static int tmio_mmc_probe(struct platform_device *pdev)
193
191
tmio_mmc_host_remove (host );
194
192
host_free :
195
193
tmio_mmc_host_free (host );
196
- pm_runtime_disable (& pdev -> dev );
197
194
cell_disable :
198
195
if (cell -> disable )
199
196
cell -> disable (pdev );
@@ -210,8 +207,6 @@ static int tmio_mmc_remove(struct platform_device *pdev)
210
207
if (cell -> disable )
211
208
cell -> disable (pdev );
212
209
213
- pm_runtime_disable (& pdev -> dev );
214
-
215
210
return 0 ;
216
211
}
217
212
Original file line number Diff line number Diff line change @@ -1153,15 +1153,6 @@ void tmio_mmc_host_free(struct tmio_mmc_host *host)
1153
1153
}
1154
1154
EXPORT_SYMBOL_GPL (tmio_mmc_host_free );
1155
1155
1156
- /**
1157
- * tmio_mmc_host_probe() - Common probe for all implementations
1158
- * @_host: Host to probe
1159
- *
1160
- * Perform tasks common to all implementations probe functions.
1161
- *
1162
- * The caller should have called pm_runtime_enable() prior to calling
1163
- * the common probe function.
1164
- */
1165
1156
int tmio_mmc_host_probe (struct tmio_mmc_host * _host )
1166
1157
{
1167
1158
struct platform_device * pdev = _host -> pdev ;
@@ -1260,6 +1251,7 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
1260
1251
pm_runtime_set_active (& pdev -> dev );
1261
1252
pm_runtime_set_autosuspend_delay (& pdev -> dev , 50 );
1262
1253
pm_runtime_use_autosuspend (& pdev -> dev );
1254
+ pm_runtime_enable (& pdev -> dev );
1263
1255
1264
1256
ret = mmc_add_host (mmc );
1265
1257
if (ret )
@@ -1295,6 +1287,7 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host)
1295
1287
1296
1288
pm_runtime_dont_use_autosuspend (& pdev -> dev );
1297
1289
pm_runtime_put_sync (& pdev -> dev );
1290
+ pm_runtime_disable (& pdev -> dev );
1298
1291
}
1299
1292
EXPORT_SYMBOL_GPL (tmio_mmc_host_remove );
1300
1293
Original file line number Diff line number Diff line change @@ -631,7 +631,6 @@ static int uniphier_sd_probe(struct platform_device *pdev)
631
631
host -> clk_disable = uniphier_sd_clk_disable ;
632
632
host -> set_clock = uniphier_sd_set_clock ;
633
633
634
- pm_runtime_enable (& pdev -> dev );
635
634
ret = uniphier_sd_clk_enable (host );
636
635
if (ret )
637
636
goto free_host ;
@@ -653,7 +652,6 @@ static int uniphier_sd_probe(struct platform_device *pdev)
653
652
654
653
free_host :
655
654
tmio_mmc_host_free (host );
656
- pm_runtime_disable (& pdev -> dev );
657
655
658
656
return ret ;
659
657
}
@@ -664,7 +662,6 @@ static int uniphier_sd_remove(struct platform_device *pdev)
664
662
665
663
tmio_mmc_host_remove (host );
666
664
uniphier_sd_clk_disable (host );
667
- pm_runtime_disable (& pdev -> dev );
668
665
669
666
return 0 ;
670
667
}
You can’t perform that action at this time.
0 commit comments