Browse Source

powerpc: Fix iseries drivers build failure without CONFIG_VIOPATH

iSeries dependent drivers fail to build, when CONFIG_VIOPATH is disabled.

Fix the problem by making those drivers select it.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Kamalesh Babulal 16 years ago
parent
commit
d2b4397bf8
3 changed files with 5 additions and 2 deletions
  1. 3 2
      arch/powerpc/platforms/iseries/Kconfig
  2. 1 0
      drivers/char/Kconfig
  3. 1 0
      drivers/scsi/Kconfig

+ 3 - 2
arch/powerpc/platforms/iseries/Kconfig

@@ -10,18 +10,21 @@ menu "iSeries device drivers"
 config VIODASD
 config VIODASD
 	tristate "iSeries Virtual I/O disk support"
 	tristate "iSeries Virtual I/O disk support"
 	depends on BLOCK
 	depends on BLOCK
+	select VIOPATH
 	help
 	help
 	  If you are running on an iSeries system and you want to use
 	  If you are running on an iSeries system and you want to use
 	  virtual disks created and managed by OS/400, say Y.
 	  virtual disks created and managed by OS/400, say Y.
 
 
 config VIOCD
 config VIOCD
 	tristate "iSeries Virtual I/O CD support"
 	tristate "iSeries Virtual I/O CD support"
+	select VIOPATH
 	help
 	help
 	  If you are running Linux on an IBM iSeries system and you want to
 	  If you are running Linux on an IBM iSeries system and you want to
 	  read a CD drive owned by OS/400, say Y here.
 	  read a CD drive owned by OS/400, say Y here.
 
 
 config VIOTAPE
 config VIOTAPE
 	tristate "iSeries Virtual Tape Support"
 	tristate "iSeries Virtual Tape Support"
+	select VIOPATH
 	help
 	help
 	  If you are running Linux on an iSeries system and you want Linux
 	  If you are running Linux on an iSeries system and you want Linux
 	  to read and/or write a tape drive owned by OS/400, say Y here.
 	  to read and/or write a tape drive owned by OS/400, say Y here.
@@ -30,5 +33,3 @@ endmenu
 
 
 config VIOPATH
 config VIOPATH
 	bool
 	bool
-	depends on VIODASD || VIOCD || VIOTAPE || ISERIES_VETH
-	default y

+ 1 - 0
drivers/char/Kconfig

@@ -616,6 +616,7 @@ config HVC_ISERIES
 	default y
 	default y
 	select HVC_DRIVER
 	select HVC_DRIVER
 	select HVC_IRQ
 	select HVC_IRQ
+	select VIOPATH
 	help
 	help
 	  iSeries machines support a hypervisor virtual console.
 	  iSeries machines support a hypervisor virtual console.
 
 

+ 1 - 0
drivers/scsi/Kconfig

@@ -884,6 +884,7 @@ config SCSI_IBMVSCSI
 	tristate "IBM Virtual SCSI support"
 	tristate "IBM Virtual SCSI support"
 	depends on PPC_PSERIES || PPC_ISERIES
 	depends on PPC_PSERIES || PPC_ISERIES
 	select SCSI_SRP_ATTRS
 	select SCSI_SRP_ATTRS
+	select VIOPATH if PPC_ISERIES
 	help
 	help
 	  This is the IBM POWER Virtual SCSI Client
 	  This is the IBM POWER Virtual SCSI Client