Re: [PATCH 2/3] pwm: lpc32xx - Properly disable the clock on deviceremove
From: Thierry Reding
Date: Fri Nov 16 2012 - 15:16:49 EST
On Wed, Nov 14, 2012 at 12:58:14PM +0100, Alban Bedel wrote:
[...]
> static int __devexit lpc32xx_pwm_remove(struct platform_device *pdev)
> {
> struct lpc32xx_pwm_chip *lpc32xx = platform_get_drvdata(pdev);
> + int i;
This should rather be unsigned int since pwm_chip.npwm is unsigned as
well.
> +
> + for (i = 0 ; i < lpc32xx->chip.npwm ; i += 1)
No space before ';' and "i++" please.
Thierry
Attachment:
pgp00000.pgp
Description: PGP signature