Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318972
b: refs/heads/master
c: 5391dd0
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Bryan Wu committed Jul 23, 2012
1 parent bcdc894 commit 3cd968e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 32abb4788d3fff69fa242c7850e39ec1418df4f4
refs/heads/master: 5391dd0a9d084633e20e6583cfed233581c452f9
6 changes: 3 additions & 3 deletions trunk/drivers/leds/leds-lp5523.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,9 @@ static int __devinit lp5523_probe(struct i2c_client *client,
if (pdata->led_config[i].led_current == 0)
continue;

INIT_WORK(&chip->leds[led].brightness_work,
lp5523_led_brightness_work);

ret = lp5523_init_led(&chip->leds[led], &client->dev, i, pdata);
if (ret) {
dev_err(&client->dev, "error initializing leds\n");
Expand All @@ -956,9 +959,6 @@ static int __devinit lp5523_probe(struct i2c_client *client,
LP5523_REG_LED_CURRENT_BASE + chip->leds[led].chan_nr,
chip->leds[led].led_current);

INIT_WORK(&(chip->leds[led].brightness_work),
lp5523_led_brightness_work);

led++;
}

Expand Down

0 comments on commit 3cd968e

Please sign in to comment.