diff mbox series

[-next] scsi: ufs: Remove redundant of_match_ptr()

Message ID 20230808124330.4045207-1-ruanjinjie@huawei.com
State New
Headers show
Series [-next] scsi: ufs: Remove redundant of_match_ptr() | expand

Commit Message

Jinjie Ruan Aug. 8, 2023, 12:43 p.m. UTC
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(-)
diff mbox series

Patch

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,
 	},
 };