Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262379
b: refs/heads/master
c: 52db981
h: refs/heads/master
i:
  262377: e914309
  262375: 35871c0
v: v3
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Jul 30, 2011
1 parent f281fcc commit a02da1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f27757a1182f5e3feff7425b1c3e43f3e466724
refs/heads/master: 52db9819ac96b0c5a4e075d836cf21dc529cbce4
9 changes: 7 additions & 2 deletions trunk/drivers/input/keyboard/lm8323.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,11 @@ static int __devinit lm8323_probe(struct i2c_client *client,
device_remove_file(&client->dev, &dev_attr_disable_kp);
fail2:
while (--pwm >= 0)
if (lm->pwm[pwm].enabled)
if (lm->pwm[pwm].enabled) {
device_remove_file(lm->pwm[pwm].cdev.dev,
&dev_attr_time);
led_classdev_unregister(&lm->pwm[pwm].cdev);
}
fail1:
input_free_device(idev);
kfree(lm);
Expand All @@ -775,8 +778,10 @@ static int __devexit lm8323_remove(struct i2c_client *client)
device_remove_file(&lm->client->dev, &dev_attr_disable_kp);

for (i = 0; i < 3; i++)
if (lm->pwm[i].enabled)
if (lm->pwm[i].enabled) {
device_remove_file(lm->pwm[i].cdev.dev, &dev_attr_time);
led_classdev_unregister(&lm->pwm[i].cdev);
}

kfree(lm);

Expand Down

0 comments on commit a02da1f

Please sign in to comment.