aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-06-26 00:25:35 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-06-26 16:57:31 +0200
commit8d080f5605c92508a73adcf45f872dd54312febb (patch)
tree84f7eb1a5ff2d55ec77acf49384c0a99039545e5 /drivers/pwm
parent8fb60e40bdc23f09578fb890de56f79d4781eb87 (diff)
downloadkernel_goldelico_gta04-8d080f5605c92508a73adcf45f872dd54312febb.zip
kernel_goldelico_gta04-8d080f5605c92508a73adcf45f872dd54312febb.tar.gz
kernel_goldelico_gta04-8d080f5605c92508a73adcf45f872dd54312febb.tar.bz2
OMAP PWM: Mux init platform data call
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-omap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-omap.c b/drivers/pwm/pwm-omap.c
index 25605d0..7a74324 100644
--- a/drivers/pwm/pwm-omap.c
+++ b/drivers/pwm/pwm-omap.c
@@ -166,6 +166,12 @@ static int omap_pwm_probe(struct platform_device *pdev)
return -ENOMEM;
}
+ if (pdata->mux_init != NULL) {
+ status = pdata->mux_init();
+ if (status < 0)
+ goto err_free;
+ }
+
/*
* Request the OMAP dual-mode timer that will be bound to and
* associated with this generic PWM.