aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2013-08-02 05:23:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-02 23:38:29 -0400
commita4f2dc9efc00a56ca30ce340a1405293ec9488a4 (patch)
tree05ff0aa99ccdcefce0007ce23a063c954f61f632
parent461a8ecb2d76fb6f3ac1a90eb886697db869d387 (diff)
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. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Reported-by: Kbuild Test Robot <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/st-asc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
index 183879825695..2ff4b1bb922d 100644
--- a/drivers/tty/serial/st-asc.c
+++ b/drivers/tty/serial/st-asc.c
@@ -724,12 +724,14 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev)
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{