Skip to content

Commit e2d8ae8

Browse files
arndbgregkh
authored andcommitted
ASoC: qdsp6: fix compile-testing without CONFIG_OF
The driver builds cleanly only when CONFIG_OF is enabled, otherwise the compiler notices an unused symbol: sound/soc/qcom/qdsp6/q6usb.c:401:34: error: 'q6usb_dai_device_id' defined but not used [-Werror=unused-const-variable=] The driver does not support legacy board files, so the of_match_ptr() annotation has no use here and can be removed to avoid the warning. Fixes: e0dd924 ("ASoC: qcom: qdsp6: Fetch USB offload mapped card and PCM device") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 662a9ec commit e2d8ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/qcom/qdsp6/q6usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ MODULE_DEVICE_TABLE(of, q6usb_dai_device_id);
407407
static struct platform_driver q6usb_dai_platform_driver = {
408408
.driver = {
409409
.name = "q6usb-dai",
410-
.of_match_table = of_match_ptr(q6usb_dai_device_id),
410+
.of_match_table = q6usb_dai_device_id,
411411
},
412412
.probe = q6usb_dai_dev_probe,
413413
/*

0 commit comments

Comments
 (0)