staging/sm7xxfb: select sm7xxfb only when CONFIG_PCI is enabled
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 12 Jul 2012 08:58:21 +0000 (14:43 +0545)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 01:55:13 +0000 (18:55 -0700)
commitcd96aeca4d580f7a464897608165bc4b04369c80
treecafa9d23546e594d4ac08ff98a888010577003b2
parent9b90b712c9504d36e60eaefce0baf66d64b3c901
staging/sm7xxfb: select sm7xxfb only when CONFIG_PCI is enabled

the sm7xxfb is a pci device, and should depend on the PCI.
And also if we wont' depend on the PCI sub-system, the following warns
will be triggered,

drivers/staging/sm7xxfb/sm7xxfb.c:1061:1: warning: data definition has no type or storage class [enabled by default]
drivers/staging/sm7xxfb/sm7xxfb.c:1061:1: warning: type defaults to 'int' in declaration of 'module_pci_driver' [-Wimplicit-int]
drivers/staging/sm7xxfb/sm7xxfb.c:1061:1: warning: parameter names (without types) in function declaration [enabled by default]

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Teddy Wang <teddy.wang@siliconmotion.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/Kconfig