dmaengine: ti: drop of_match_ptr and mark of_device_id table as maybe unused
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 20 Nov 2020 16:23:03 +0000 (17:23 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 24 Nov 2020 17:32:20 +0000 (23:02 +0530)
commit5d051f37f49d5bf04dca15fadea3a90a6a6f0f15
tree66482d764f4d3e41e670fce7b361fbd4091da403
parent25d39b590dac0b8230cc3663c9f8f1a3a21831fd
dmaengine: ti: drop of_match_ptr and mark of_device_id table as maybe unused

The driver can match only via the DT table so the main 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 is not relevant here).

The secondary match of_device_id tables (passed to of_match_node) should
be marked as maybe unused to fix compile testing (!CONFIG_OF on x86_64)
warnings:

    drivers/dma/ti/dma-crossbar.c:125:34: warning:
        ‘ti_am335x_master_match’ defined but not used [-Wunused-const-variable=]
    drivers/dma/ti/dma-crossbar.c:22:34: warning:
        ‘ti_dma_xbar_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201120162303.482126-6-krzk@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/dma-crossbar.c