staging: dgnc: Kconfig: add dependency PCI for it
authorChen Gang <gang.chen@asianux.com>
Mon, 26 Aug 2013 03:55:50 +0000 (11:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 13:29:09 +0000 (06:29 -0700)
DGNC is based on PCI, so need add related dependency, or when compiled
with PCI disabled, it will be fail.

The related error (randconfig for PCI disabled under s390):

  drivers/staging/dgnc/dgnc_cls.c:1394:2: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]
  drivers/staging/dgnc/dgnc_cls.c:1407:3: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]

Cc: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/Kconfig

index 23daaa5d520ee8cc875bfb4ca3d78b9fe6ddbc64..032c2a7952389196ae1a4ee2d3e34cff2ba8811b 100644 (file)
@@ -1,6 +1,6 @@
 config DGNC
        tristate "Digi Neo and Classic PCI Products"
        default n
-       depends on TTY
+       depends on TTY && PCI
        ---help---
        Driver for the Digi International Neo and Classic PCI based product line.