Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: nv: drop useless CONFIG_PCI checks

Both FB_RIVA and FB_NVIDIA depends on PCI, so CONFIG_PCI always defined for
them.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Antonino A. Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
7ce3ab10 affc23d1

-9
-4
drivers/video/riva/fbdev.c
··· 56 56 #include "rivafb.h" 57 57 #include "nvreg.h" 58 58 59 - #ifndef CONFIG_PCI /* sanity check */ 60 - #error This driver requires PCI support. 61 - #endif 62 - 63 59 /* version number of this driver */ 64 60 #define RIVAFB_VERSION "0.9.5b" 65 61
-5
drivers/video/riva/nv_driver.c
··· 41 41 #include "rivafb.h" 42 42 #include "nvreg.h" 43 43 44 - 45 - #ifndef CONFIG_PCI /* sanity check */ 46 - #error This driver requires PCI support. 47 - #endif 48 - 49 44 #define PFX "rivafb: " 50 45 51 46 static inline unsigned char MISCin(struct riva_par *par)