From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx> This patch fixes a below warning reported by kbuild test robot. drivers/tty/serial/st-asc.c:727:28: warning: 'asc_match' defined but not used [-Wunused-variable] The code used in DT case is now ifdefed under CONFIG_OF to fix this warning. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx> Reported-by: Kbuild Test Robot <fengguang.wu@xxxxxxxxx> --- drivers/tty/serial/st-asc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 1c1ecbd..81eb126 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -727,12 +727,14 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev) return &asc_ports[id]; } +#ifdef CONFIG_OF static struct of_device_id asc_match[] = { { .compatible = "st,asc", }, {}, }; MODULE_DEVICE_TABLE(of, asc_match); +#endif static int asc_serial_probe(struct platform_device *pdev) { -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html