]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] 5087/1: Get the PWM layer to handle clock enable/disable properly.
authorRobert Jarzmik <rjarzmik@free.fr>
Tue, 10 Jun 2008 22:02:31 +0000 (23:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Jul 2008 12:24:59 +0000 (13:24 +0100)
commitc860d701cc5f77b74c481dcbd25b2d8b31c622fc
treec1fc9022ab9bf207bb84f9eb8a29997536647b94
parentb5f0228afa7810f3cad1f2f741cc747a2378b890
[ARM] 5087/1: Get the PWM layer to handle clock enable/disable properly.

Allow pwm_enable()/pwm_disable() to be called as many times
as the driver wants (and not even count them).
The PWM model is different from things like the clock API
where we need enable counting, because PWMs have one
exclusive user per PWM whereas the clock API can have
multiple users of the same clock.

Acked-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Robert Jarzmik <rjarzmik@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pwm.c