The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@xxxxxxxxxx> --- drivers/ufs/host/tc-dwc-g210-pltfrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/tc-dwc-g210-pltfrm.c b/drivers/ufs/host/tc-dwc-g210-pltfrm.c index 4d5389dd9585..5d27855cc4f2 100644 --- a/drivers/ufs/host/tc-dwc-g210-pltfrm.c +++ b/drivers/ufs/host/tc-dwc-g210-pltfrm.c @@ -95,7 +95,7 @@ static struct platform_driver tc_dwc_g210_pltfm_driver = { .driver = { .name = "tc-dwc-g210-pltfm", .pm = &tc_dwc_g210_pltfm_pm_ops, - .of_match_table = of_match_ptr(tc_dwc_g210_pltfm_match), + .of_match_table = tc_dwc_g210_pltfm_match, }, }; -- 2.34.1