Skip to content

Commit 24b0277

Browse files
krzkLinus Walleij
authored andcommitted
pinctrl: tb10x: 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 warning: pinctrl-tb10x.c:815:34: warning: unused variable 'tb10x_pinctrl_dt_ids' [-Wunused-const-variable] Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505301317.EI1caRC0-lkp@intel.com/ Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/20250601105100.27927-2-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent d38e00c commit 24b0277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/pinctrl-tb10x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static struct platform_driver tb10x_pinctrl_pdrv = {
823823
.remove = tb10x_pinctrl_remove,
824824
.driver = {
825825
.name = "tb10x_pinctrl",
826-
.of_match_table = of_match_ptr(tb10x_pinctrl_dt_ids),
826+
.of_match_table = tb10x_pinctrl_dt_ids,
827827
}
828828
};
829829

0 commit comments

Comments
 (0)