]> git.sur5r.net Git - u-boot/commitdiff
pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 2 Feb 2017 07:04:11 +0000 (16:04 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 8 Feb 2017 21:24:26 +0000 (16:24 -0500)
Both CONFIG_PWM_TEGRA and CONFIG_PWM_EXYNOS depend on CONFIG_DM_PWM,
i.e. they are already guarded by Kconfig correctly.  Remove unneeded
ifdef CONFIG_DM_PWM ... endif.

While we are here, let's tidy up alignment and sort the lines
alphabetically in Makefile.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pwm/Makefile

index af39347aacf72842f1b0befca59468825c209379..b037130385155dc30a6c0f5fc7ac913dd55463d4 100644 (file)
 
 #ccflags-y += -DDEBUG
 
-obj-$(CONFIG_DM_PWM) += pwm-uclass.o
-obj-$(CONFIG_PWM_ROCKCHIP) += rk_pwm.o
-obj-$(CONFIG_PWM_IMX) += pwm-imx.o pwm-imx-util.o
-ifdef CONFIG_DM_PWM
-obj-$(CONFIG_PWM_TEGRA) += tegra_pwm.o
-obj-$(CONFIG_PWM_EXYNOS) += exynos_pwm.o
-endif
+obj-$(CONFIG_DM_PWM)           += pwm-uclass.o
+
+obj-$(CONFIG_PWM_EXYNOS)       += exynos_pwm.o
+obj-$(CONFIG_PWM_IMX)          += pwm-imx.o pwm-imx-util.o
+obj-$(CONFIG_PWM_ROCKCHIP)     += rk_pwm.o
+obj-$(CONFIG_PWM_TEGRA)                += tegra_pwm.o