diff options
author | Devendra Naga | 2012-07-12 10:58:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-07-17 03:55:13 +0200 |
commit | cd96aeca4d580f7a464897608165bc4b04369c80 (patch) | |
tree | cafa9d23546e594d4ac08ff98a888010577003b2 /drivers/staging/sm7xxfb | |
parent | staging/gdm72xx: coding style fixes gdm_qos.c (diff) | |
download | kernel-qcow2-linux-cd96aeca4d580f7a464897608165bc4b04369c80.tar.gz kernel-qcow2-linux-cd96aeca4d580f7a464897608165bc4b04369c80.tar.xz kernel-qcow2-linux-cd96aeca4d580f7a464897608165bc4b04369c80.zip |
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>
Diffstat (limited to 'drivers/staging/sm7xxfb')
-rw-r--r-- | drivers/staging/sm7xxfb/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sm7xxfb/Kconfig b/drivers/staging/sm7xxfb/Kconfig index d5013f8a865b..e2922ae3a3ee 100644 --- a/drivers/staging/sm7xxfb/Kconfig +++ b/drivers/staging/sm7xxfb/Kconfig @@ -1,6 +1,6 @@ config FB_SM7XX tristate "Silicon Motion SM7XX framebuffer support" - depends on FB + depends on FB && PCI select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT |