forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mmc/host/dw_mmc-bluefield.c
....@@ -47,16 +47,7 @@
4747
4848 static int dw_mci_bluefield_probe(struct platform_device *pdev)
4949 {
50
- const struct dw_mci_drv_data *drv_data = NULL;
51
- const struct of_device_id *match;
52
-
53
- if (pdev->dev.of_node) {
54
- match = of_match_node(dw_mci_bluefield_match,
55
- pdev->dev.of_node);
56
- drv_data = match->data;
57
- }
58
-
59
- return dw_mci_pltfm_register(pdev, drv_data);
50
+ return dw_mci_pltfm_register(pdev, &bluefield_drv_data);
6051 }
6152
6253 static struct platform_driver dw_mci_bluefield_pltfm_driver = {
....@@ -64,6 +55,7 @@
6455 .remove = dw_mci_pltfm_remove,
6556 .driver = {
6657 .name = "dwmmc_bluefield",
58
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
6759 .of_match_table = dw_mci_bluefield_match,
6860 .pm = &dw_mci_pltfm_pmops,
6961 },