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
724 return &asc_ports[id];724 return &asc_ports[id];
725}725}
726 726
727#ifdef CONFIG_OF
727static struct of_device_id asc_match[] = {728static struct of_device_id asc_match[] = {
728 { .compatible = "st,asc", },729 { .compatible = "st,asc", },
729 {},730 {},
730};731};
731 732
732MODULE_DEVICE_TABLE(of, asc_match);733MODULE_DEVICE_TABLE(of, asc_match);
734#endif
733 735
734static int asc_serial_probe(struct platform_device *pdev)736static int asc_serial_probe(struct platform_device *pdev)
735{737{