]> Pileus Git - ~andy/linux/commitdiff
i2c: shmobile/rcar: Restrict non-COMPILE_TEST compilation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 27 Nov 2013 01:18:23 +0000 (02:18 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 3 Jan 2014 16:40:31 +0000 (17:40 +0100)
Hardware supported by the i2c sh_mobile and rcar drivers is only found
on SUPERH or ARCH_SHMOBILE platforms. Restrict non-COMPILE_TEST
compilation to them.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig

index 8e8332d5ac73166471d17d3c75c2372d8e66d266..5687b5c7f9b0c09806af772b0e712e5cf14cff90 100644 (file)
@@ -693,7 +693,7 @@ config I2C_SH7760
 
 config I2C_SH_MOBILE
        tristate "SuperH Mobile I2C Controller"
-       depends on SUPERH || ARM || COMPILE_TEST
+       depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
        help
          If you say yes to this option, support will be included for the
          built-in I2C interface on the Renesas SH-Mobile processor.
@@ -806,7 +806,7 @@ config I2C_XLR
 
 config I2C_RCAR
        tristate "Renesas R-Car I2C Controller"
-       depends on ARM || COMPILE_TEST
+       depends on ARCH_SHMOBILE || COMPILE_TEST
        help
          If you say yes to this option, support will be included for the
          R-Car I2C controller.