Message ID | 20230808124330.4045207-1-ruanjinjie@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [-next] scsi: ufs: Remove redundant of_match_ptr() | expand |
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, }, };
The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> --- drivers/ufs/host/tc-dwc-g210-pltfrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)