From: Alexey Dobriyan Both FB_RIVA and FB_NVIDIA depends on PCI, so CONFIG_PCI always defined for them. Signed-off-by: Alexey Dobriyan Cc: Antonino A. Daplas Signed-off-by: Andrew Morton --- drivers/video/riva/fbdev.c | 4 ---- drivers/video/riva/nv_driver.c | 5 ----- 2 files changed, 9 deletions(-) diff -puN drivers/video/riva/fbdev.c~nv-drop-useless-config_pci-checks drivers/video/riva/fbdev.c --- a/drivers/video/riva/fbdev.c~nv-drop-useless-config_pci-checks +++ a/drivers/video/riva/fbdev.c @@ -56,10 +56,6 @@ #include "rivafb.h" #include "nvreg.h" -#ifndef CONFIG_PCI /* sanity check */ -#error This driver requires PCI support. -#endif - /* version number of this driver */ #define RIVAFB_VERSION "0.9.5b" diff -puN drivers/video/riva/nv_driver.c~nv-drop-useless-config_pci-checks drivers/video/riva/nv_driver.c --- a/drivers/video/riva/nv_driver.c~nv-drop-useless-config_pci-checks +++ a/drivers/video/riva/nv_driver.c @@ -41,11 +41,6 @@ #include "rivafb.h" #include "nvreg.h" - -#ifndef CONFIG_PCI /* sanity check */ -#error This driver requires PCI support. -#endif - #define PFX "rivafb: " static inline unsigned char MISCin(struct riva_par *par) _