From: Randy Dunlap <rdun...@xenotime.net>

sm7xxfb.c is a PCI driver, so make it depend on PCI.
Fixes these build warnings:

drivers/staging/sm7xxfb/sm7xxfb.c:1063:1: warning: data definition has no type 
or storage class
drivers/staging/sm7xxfb/sm7xxfb.c:1063:1: warning: type defaults to 'int' in 
declaration of 'module_pci_driver'
drivers/staging/sm7xxfb/sm7xxfb.c:1063:1: warning: parameter names (without 
types) in function declaration

Signed-off-by: Randy Dunlap <rdun...@xenotime.net>
Cc: Teddy Wang <teddy.w...@siliconmotion.com.cn>
---
 drivers/staging/sm7xxfb/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20120716.orig/drivers/staging/sm7xxfb/Kconfig
+++ linux-next-20120716/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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to