pwm: Remove obsolete HAVE_PWM Kconfig symbol

Before we had the PWM framework we used to have a barebone PWM api. The
HAVE_PWM Kconfig symbol used to be selected by the PWM drivers to specify
the PWM API is present in the kernel. Since the last legacy driver is gone
the HAVE_PWM symbol can go aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: linux-pwm@vger.kernel.orig
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Sascha Hauer 2014-01-24 08:54:16 +01:00 committed by Thierry Reding
parent 38dbfb59d1
commit 557fe99d9d
5 changed files with 3 additions and 23 deletions

View File

@ -113,9 +113,6 @@ config ARM_DMA_IOMMU_ALIGNMENT
endif endif
config HAVE_PWM
bool
config MIGHT_HAVE_PCI config MIGHT_HAVE_PCI
bool bool
@ -632,7 +629,6 @@ config ARCH_LPC32XX
select CPU_ARM926T select CPU_ARM926T
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_IDE select HAVE_IDE
select HAVE_PWM
select USB_ARCH_HAS_OHCI select USB_ARCH_HAS_OHCI
select USE_OF select USE_OF
help help

View File

@ -7,7 +7,6 @@ comment "Intel/Marvell Dev Platforms (sorted by hardware release time)"
config MACH_PXA3XX_DT config MACH_PXA3XX_DT
bool "Support PXA3xx platforms from device tree" bool "Support PXA3xx platforms from device tree"
select CPU_PXA300 select CPU_PXA300
select HAVE_PWM
select POWER_SUPPLY select POWER_SUPPLY
select PXA3xx select PXA3xx
select USE_OF select USE_OF
@ -23,12 +22,10 @@ config ARCH_LUBBOCK
config MACH_MAINSTONE config MACH_MAINSTONE
bool "Intel HCDDBBVA0 Development Platform (aka Mainstone)" bool "Intel HCDDBBVA0 Development Platform (aka Mainstone)"
select HAVE_PWM
select PXA27x select PXA27x
config MACH_ZYLONITE config MACH_ZYLONITE
bool bool
select HAVE_PWM
select PXA3xx select PXA3xx
config MACH_ZYLONITE300 config MACH_ZYLONITE300
@ -69,7 +66,6 @@ config ARCH_PXA_IDP
config ARCH_VIPER config ARCH_VIPER
bool "Arcom/Eurotech VIPER SBC" bool "Arcom/Eurotech VIPER SBC"
select ARCOM_PCMCIA select ARCOM_PCMCIA
select HAVE_PWM
select I2C_GPIO select I2C_GPIO
select ISA select ISA
select PXA25x select PXA25x
@ -120,7 +116,6 @@ config MACH_CM_X300
bool "CompuLab CM-X300 modules" bool "CompuLab CM-X300 modules"
select CPU_PXA300 select CPU_PXA300
select CPU_PXA310 select CPU_PXA310
select HAVE_PWM
select PXA3xx select PXA3xx
config MACH_CAPC7117 config MACH_CAPC7117
@ -211,7 +206,6 @@ config TRIZEPS_PCMCIA
config MACH_LOGICPD_PXA270 config MACH_LOGICPD_PXA270
bool "LogicPD PXA270 Card Engine Development Platform" bool "LogicPD PXA270 Card Engine Development Platform"
select HAVE_PWM
select PXA27x select PXA27x
config MACH_PCM027 config MACH_PCM027
@ -222,7 +216,6 @@ config MACH_PCM027
config MACH_PCM990_BASEBOARD config MACH_PCM990_BASEBOARD
bool "PHYTEC PCM-990 development board" bool "PHYTEC PCM-990 development board"
depends on MACH_PCM027 depends on MACH_PCM027
select HAVE_PWM
choice choice
prompt "display on pcm990" prompt "display on pcm990"
@ -246,7 +239,6 @@ config MACH_COLIBRI
config MACH_COLIBRI_PXA270_INCOME config MACH_COLIBRI_PXA270_INCOME
bool "Income s.r.o. PXA270 SBC" bool "Income s.r.o. PXA270 SBC"
depends on MACH_COLIBRI depends on MACH_COLIBRI
select HAVE_PWM
select PXA27x select PXA27x
config MACH_COLIBRI300 config MACH_COLIBRI300
@ -275,7 +267,6 @@ comment "End-user Products (sorted by vendor name)"
config MACH_H4700 config MACH_H4700
bool "HP iPAQ hx4700" bool "HP iPAQ hx4700"
select HAVE_PWM
select IWMMXT select IWMMXT
select PXA27x select PXA27x
@ -289,14 +280,12 @@ config MACH_HIMALAYA
config MACH_MAGICIAN config MACH_MAGICIAN
bool "Enable HTC Magician Support" bool "Enable HTC Magician Support"
select HAVE_PWM
select IWMMXT select IWMMXT
select PXA27x select PXA27x
config MACH_MIOA701 config MACH_MIOA701
bool "Mitac Mio A701 Support" bool "Mitac Mio A701 Support"
select GPIO_SYSFS select GPIO_SYSFS
select HAVE_PWM
select IWMMXT select IWMMXT
select PXA27x select PXA27x
help help
@ -306,7 +295,6 @@ config MACH_MIOA701
config PXA_EZX config PXA_EZX
bool "Motorola EZX Platform" bool "Motorola EZX Platform"
select HAVE_PWM
select IWMMXT select IWMMXT
select PXA27x select PXA27x
@ -346,7 +334,6 @@ config MACH_MP900C
config ARCH_PXA_PALM config ARCH_PXA_PALM
bool "PXA based Palm PDAs" bool "PXA based Palm PDAs"
select HAVE_PWM
config MACH_PALM27X config MACH_PALM27X
bool bool
@ -444,7 +431,6 @@ config MACH_TREO680
config MACH_RAUMFELD_RC config MACH_RAUMFELD_RC
bool "Raumfeld Controller" bool "Raumfeld Controller"
select CPU_PXA300 select CPU_PXA300
select HAVE_PWM
select POWER_SUPPLY select POWER_SUPPLY
select PXA3xx select PXA3xx
@ -608,7 +594,6 @@ config MACH_E800
config MACH_ZIPIT2 config MACH_ZIPIT2
bool "Zipit Z2 Handheld" bool "Zipit Z2 Handheld"
select HAVE_PWM
select PXA27x select PXA27x
endmenu endmenu

View File

@ -235,7 +235,6 @@ config MACH_JZ4740
select IRQ_CPU select IRQ_CPU
select ARCH_REQUIRE_GPIOLIB select ARCH_REQUIRE_GPIOLIB
select SYS_HAS_EARLY_PRINTK select SYS_HAS_EARLY_PRINTK
select HAVE_PWM
select HAVE_CLK select HAVE_CLK
select GENERIC_IRQ_CHIP select GENERIC_IRQ_CHIP

View File

@ -156,7 +156,7 @@ config INPUT_MAX8925_ONKEY
config INPUT_MAX8997_HAPTIC config INPUT_MAX8997_HAPTIC
tristate "MAXIM MAX8997 haptic controller support" tristate "MAXIM MAX8997 haptic controller support"
depends on PWM && HAVE_PWM && MFD_MAX8997 depends on PWM && MFD_MAX8997
select INPUT_FF_MEMLESS select INPUT_FF_MEMLESS
help help
This option enables device driver support for the haptic controller This option enables device driver support for the haptic controller
@ -470,7 +470,7 @@ config INPUT_PCF8574
config INPUT_PWM_BEEPER config INPUT_PWM_BEEPER
tristate "PWM beeper support" tristate "PWM beeper support"
depends on PWM && HAVE_PWM depends on PWM
help help
Say Y here to get support for PWM based beeper devices. Say Y here to get support for PWM based beeper devices.

View File

@ -7,7 +7,7 @@
struct pwm_device; struct pwm_device;
struct seq_file; struct seq_file;
#if IS_ENABLED(CONFIG_PWM) || IS_ENABLED(CONFIG_HAVE_PWM) #if IS_ENABLED(CONFIG_PWM)
/* /*
* pwm_request - request a PWM device * pwm_request - request a PWM device
*/ */