]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: st-asc: Fix unused variable warning for non DT.
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Fri, 2 Aug 2013 09:23:51 +0000 (10:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2013 03:38:29 +0000 (11:38 +0800)
commita4f2dc9efc00a56ca30ce340a1405293ec9488a4
tree05ff0aa99ccdcefce0007ce23a063c954f61f632
parent461a8ecb2d76fb6f3ac1a90eb886697db869d387
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>
drivers/tty/serial/st-asc.c