pwm: pwm-ti*: Get the clock from the PWMSS parent when using old bindings
authorCooper Jr., Franklin <fcooper@ti.com>
Tue, 3 May 2016 15:56:52 +0000 (10:56 -0500)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 8 Jul 2016 15:53:37 +0000 (17:53 +0200)
commitae5200d2271691b28aff8d0409fbefd4644ff507
treed1b36c46c5888d9e2f3abf97818bbdf6ffcaa850
parente1aaf89a5415ab6514cb6798148c7fe04c0ee138
pwm: pwm-ti*: Get the clock from the PWMSS parent when using old bindings

When using the old eCAP and ePWM bindings for AM335x and AM437x the clock
can be retrieved from the PWMSS parent. Newer bindings will insure that
this clock is provided via device tree.

Therefore, update this driver to support the newer and older bindings. In
the case of the older binding being used give a warning.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
[thierry.reding@gmail.com: rewrite slightly for readability]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiecap.c
drivers/pwm/pwm-tiehrpwm.c