TTY: rocket, fix compilation warning
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Apr 2013 05:52:06 +0000 (07:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Apr 2013 18:00:59 +0000 (11:00 -0700)
commitf678c440022eb6274840cd11edd52a5dcc7bf1b3
treed09634003588b496f62f0fd280082b3d5a5c6d7d
parent11b397e6eb12191300ca19290f29f51f61118953
TTY: rocket, fix compilation warning

When CONFIG_PCI is unset, we see these warnings in rocket:
  drivers/tty/rocket.c:3140:13: warning: 'rmSpeakerReset' defined but not used
  drivers/tty/rocket.c:2599:12: warning: 'sPCIInitController' defined but not used

Fix those by moving the functions to one place and make them depend on
CONFIG_PCI.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-by: Toralf Foerster <toralf.foerster@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/rocket.c