History

serial: st-asc: Fix unused variable warning for non DT.

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.

Srinivas Kandagatla committed 13 years ago

Commit a4f2dc91 parent 461a8ec1 file · +2 −0Browse files

Unified · Split

drivers/tty/serial/st-asc.c+2−0
@@ -724,12 +724,14 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev) · 723 unmodified lines
724724 return &asc_ports[id];
725725 }
726726
727+#ifdef CONFIG_OF
727728 static struct of_device_id asc_match[] = {
728729 { .compatible = "st,asc", },
729730 {},
730731 };
731732
732733 MODULE_DEVICE_TABLE(of, asc_match);
734+#endif
733735
734736 static int asc_serial_probe(struct platform_device *pdev)
735737 {