projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dd8115
)
tegra: Allow driver model to be used for the PWM
author
Simon Glass
<sjg@chromium.org>
Sat, 30 Jan 2016 23:37:48 +0000
(16:37 -0700)
committer
Tom Warren
<twarren@nvidia.com>
Tue, 16 Feb 2016 16:17:51 +0000
(09:17 -0700)
We can skip this manual init when using driver model for the PWM.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/mach-tegra/board2.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-tegra/board2.c
b/arch/arm/mach-tegra/board2.c
index 60e19c838784ec0fb2cb05e701c1314acaaee5bb..15b5cb6a0de4fac4babbcd6877837124deea9cca 100644
(file)
--- a/
arch/arm/mach-tegra/board2.c
+++ b/
arch/arm/mach-tegra/board2.c
@@
-134,7
+134,8
@@
int board_init(void)
pin_mux_spi();
#endif
-#ifdef CONFIG_PWM_TEGRA
+ /* Init is handled automatically in the driver-model case */
+#if defined(CONFIG_PWM_TEGRA) && !defined(CONFIG_PWM)
if (pwm_init(gd->fdt_blob))
debug("%s: Failed to init pwm\n", __func__);
#endif