Browse Source

ata: fix R-Car SATA driver dependencies

Make sata_rcar host driver depend on ARCH_SHMOBILE config option as
Renesas R-Car SATA support is specific to Renesas SoCs and the driver
to work requires suitable device tree node (or platform device) to be
defined.  Additionally allow the driver build if COMPILE_TEST config
option is set.

Cc: Simon Horman <horms@verge.net.au>
Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Bartlomiej Zolnierkiewicz 11 years ago
parent
commit
7596d93d8d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/ata/Kconfig

+ 1 - 0
drivers/ata/Kconfig

@@ -305,6 +305,7 @@ config SATA_PROMISE
 
 
 config SATA_RCAR
 config SATA_RCAR
 	tristate "Renesas R-Car SATA support"
 	tristate "Renesas R-Car SATA support"
+	depends on ARCH_SHMOBILE || COMPILE_TEST
 	help
 	help
 	  This option enables support for Renesas R-Car Serial ATA.
 	  This option enables support for Renesas R-Car Serial ATA.