[PATCH] ep93xx: register the pwm devices on the edb93xx dev boards
H Hartley Sweeten
hartleys at visionengravers.com
Mon Jan 11 13:09:05 EST 2010
On Sunday, January 10, 2010 6:10 PM, Ryan Mallon wrote:
> H Hartley Sweeten wrote:
>> ep93xx: register the pwm devices on the edb93xx dev boards
>>
>> Add the platform init code to register the pwm devices that exist
>> on the various edb93xx development boards.
>>
>> Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
>> Cc: Ryan Mallon <ryan at bluewatersys.com>
>>
>> ---
>>
>> diff --git a/arch/arm/mach-ep93xx/edb93xx.c b/arch/arm/mach-ep93xx/edb93xx.c
>> index a4a7be3..cee7e91 100644
>> --- a/arch/arm/mach-ep93xx/edb93xx.c
>> +++ b/arch/arm/mach-ep93xx/edb93xx.c
>> @@ -118,12 +118,33 @@ static void __init edb93xx_register_i2c(void)
>> }
>> }
>>
>> +
>> +/*************************************************************************
>> + * EDB93xx pwm
>> + *************************************************************************/
>> +static void __init edb93xx_register_pwm(void)
>> +{
>> + if (machine_is_edb9301() ||
>> + machine_is_edb9302() || machine_is_edb9302a()) {
>> + /* EP9301 and EP9302 only have pwm.1 (EGPIO14) */
>> + ep93xx_register_pwm(0, 1);
>> + } if (machine_is_edb9307() || machine_is_edb9307a()) {
>
> else if? Otherwise the else clause below will also occur on 9301, 9302
> and 9302a and try to register the pwm's twice.
Yah, I'm an idiot... Updated patch coming.
Thanks,
Hartley
More information about the linux-arm-kernel
mailing list