mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 14:43:54 +08:00
hwspinlock: omap: 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). drivers/hwspinlock/omap_hwspinlock.c:164:34: error: ‘omap_hwspinlock_of_match’ defined but not used [-Werror=unused-const-variable=] Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230512164520.212312-1-krzysztof.kozlowski@linaro.org
This commit is contained in:
parent
ac9a78681b
commit
1b39e76071
@ -174,7 +174,7 @@ static struct platform_driver omap_hwspinlock_driver = {
|
||||
.remove = omap_hwspinlock_remove,
|
||||
.driver = {
|
||||
.name = "omap_hwspinlock",
|
||||
.of_match_table = of_match_ptr(omap_hwspinlock_of_match),
|
||||
.of_match_table = omap_hwspinlock_of_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user