projects/linux·commit 7ce3ab10

fbdev: nv: drop useless CONFIG_PCI checks

7ce3ab10 · Alexey Dobriyan <[email protected]> · 2008-04-28 02:15:33 -07:00

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

Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Antonino A. Daplas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
7ce3ab100e4e115ca2c4fd931844a0f1a50df406
Parents
affc23d1

Changes

2 files changed · +0 −9

FileStatusAddDelContent
drivers/video/riva/fbdev.cmodified+0−4View file
drivers/video/riva/nv_driver.cmodified+0−5View file

drivers/video/riva/fbdev.c

View file
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
index 46a9237..08a9b56 100644
--- a/drivers/video/riva/fbdev.c
+++ b/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"

drivers/video/riva/nv_driver.c

View file
diff --git a/drivers/video/riva/nv_driver.c b/drivers/video/riva/nv_driver.c
index a110268..a118114 100644
--- a/drivers/video/riva/nv_driver.c
+++ b/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)