diff mbox

[1/2] Fix build error in pwm-vt8500.c

Message ID 1353290780-19413-2-git-send-email-linux@prisktech.co.nz (mailing list archive)
State New, archived
Headers show

Commit Message

Tony Prisk Nov. 19, 2012, 2:06 a.m. UTC
A missing '{' causes a build error in pwm-vt8500.c

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
---
 drivers/pwm/pwm-vt8500.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thierry Reding Nov. 19, 2012, 6:51 a.m. UTC | #1
On Mon, Nov 19, 2012 at 03:06:19PM +1300, Tony Prisk wrote:
> A missing '{' causes a build error in pwm-vt8500.c

Great, how embarrassing. You've just uncovered a typo in my automated
build test setup. =)

Thierry
Russell King - ARM Linux Nov. 19, 2012, 9:29 a.m. UTC | #2
On Mon, Nov 19, 2012 at 03:06:19PM +1300, Tony Prisk wrote:
> A missing '{' causes a build error in pwm-vt8500.c
> 
> Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
> ---
>  drivers/pwm/pwm-vt8500.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c
> index 970b0c6..806f72c 100644
> --- a/drivers/pwm/pwm-vt8500.c
> +++ b/drivers/pwm/pwm-vt8500.c
> @@ -100,7 +100,7 @@ static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
>  	struct vt8500_chip *vt8500 = to_vt8500_chip(chip);
>  
>  	err = clk_enable(vt8500->clk);
> -	if (err < 0)
> +	if (err < 0) {
>  		dev_err(chip->dev, "failed to enable clock\n");
>  		return err;
>  	};

Why does this closing brace have a semicolon after it?
Thierry Reding Nov. 19, 2012, 1:03 p.m. UTC | #3
On Mon, Nov 19, 2012 at 09:29:26AM +0000, Russell King - ARM Linux wrote:
> On Mon, Nov 19, 2012 at 03:06:19PM +1300, Tony Prisk wrote:
> > A missing '{' causes a build error in pwm-vt8500.c
> > 
> > Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
> > ---
> >  drivers/pwm/pwm-vt8500.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c
> > index 970b0c6..806f72c 100644
> > --- a/drivers/pwm/pwm-vt8500.c
> > +++ b/drivers/pwm/pwm-vt8500.c
> > @@ -100,7 +100,7 @@ static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
> >  	struct vt8500_chip *vt8500 = to_vt8500_chip(chip);
> >  
> >  	err = clk_enable(vt8500->clk);
> > -	if (err < 0)
> > +	if (err < 0) {
> >  		dev_err(chip->dev, "failed to enable clock\n");
> >  		return err;
> >  	};
> 
> Why does this closing brace have a semicolon after it?

Tony,

can you remove the gratuitous semicolon while at it, please?

Thanks for spotting it Russell.

Thierry
diff mbox

Patch

diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c
index 970b0c6..806f72c 100644
--- a/drivers/pwm/pwm-vt8500.c
+++ b/drivers/pwm/pwm-vt8500.c
@@ -100,7 +100,7 @@  static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
 	struct vt8500_chip *vt8500 = to_vt8500_chip(chip);
 
 	err = clk_enable(vt8500->clk);
-	if (err < 0)
+	if (err < 0) {
 		dev_err(chip->dev, "failed to enable clock\n");
 		return err;
 	};