Skip to content

Commit 543c143

Browse files
krzkkuba-moo
authored andcommitted
ptp: ines: drop of_match_ptr for ID table
The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/ptp/ptp_ines.c:783:34: error: ‘ines_ptp_ctrl_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Richard Cochran <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a02d83f commit 543c143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ptp/ptp_ines.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ static struct platform_driver ines_ptp_ctrl_driver = {
792792
.remove = ines_ptp_ctrl_remove,
793793
.driver = {
794794
.name = "ines_ptp_ctrl",
795-
.of_match_table = of_match_ptr(ines_ptp_ctrl_of_match),
795+
.of_match_table = ines_ptp_ctrl_of_match,
796796
},
797797
};
798798
module_platform_driver(ines_ptp_ctrl_driver);

0 commit comments

Comments
 (0)