浏览代码

misc: Add hardware dependencies to Atmel drivers

According to the driver descriptions, the atmel_pwm and atmel-ssc
drivers are only useful on Atmel AT32 and AT91 systems. So add
hardware dependencies to these drivers to hide them on other systems.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jean Delvare 11 年之前
父节点
当前提交
fc1a5dbe49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/misc/Kconfig

+ 2 - 2
drivers/misc/Kconfig

@@ -53,7 +53,7 @@ config AD525X_DPOT_SPI
 
 
 config ATMEL_PWM
 config ATMEL_PWM
 	tristate "Atmel AT32/AT91 PWM support"
 	tristate "Atmel AT32/AT91 PWM support"
-	depends on HAVE_CLK
+	depends on HAVE_CLK && (AVR32 || ARCH_AT91 || COMPILE_TEST)
 	help
 	help
 	  This option enables device driver support for the PWM channels
 	  This option enables device driver support for the PWM channels
 	  on certain Atmel processors.  Pulse Width Modulation is used for
 	  on certain Atmel processors.  Pulse Width Modulation is used for
@@ -200,7 +200,7 @@ config ICS932S401
 
 
 config ATMEL_SSC
 config ATMEL_SSC
 	tristate "Device driver for Atmel SSC peripheral"
 	tristate "Device driver for Atmel SSC peripheral"
-	depends on HAS_IOMEM
+	depends on HAS_IOMEM && (AVR32 || ARCH_AT91 || COMPILE_TEST)
 	---help---
 	---help---
 	  This option enables device driver support for Atmel Synchronized
 	  This option enables device driver support for Atmel Synchronized
 	  Serial Communication peripheral (SSC).
 	  Serial Communication peripheral (SSC).