diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/leds/leds-lp5523.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c index 857a3e15f2dd..e8a271232cd0 100644 --- a/drivers/leds/leds-lp5523.c +++ b/drivers/leds/leds-lp5523.c | |||
@@ -943,6 +943,9 @@ static int __devinit lp5523_probe(struct i2c_client *client, | |||
943 | if (pdata->led_config[i].led_current == 0) | 943 | if (pdata->led_config[i].led_current == 0) |
944 | continue; | 944 | continue; |
945 | 945 | ||
946 | INIT_WORK(&chip->leds[led].brightness_work, | ||
947 | lp5523_led_brightness_work); | ||
948 | |||
946 | ret = lp5523_init_led(&chip->leds[led], &client->dev, i, pdata); | 949 | ret = lp5523_init_led(&chip->leds[led], &client->dev, i, pdata); |
947 | if (ret) { | 950 | if (ret) { |
948 | dev_err(&client->dev, "error initializing leds\n"); | 951 | dev_err(&client->dev, "error initializing leds\n"); |
@@ -956,9 +959,6 @@ static int __devinit lp5523_probe(struct i2c_client *client, | |||
956 | LP5523_REG_LED_CURRENT_BASE + chip->leds[led].chan_nr, | 959 | LP5523_REG_LED_CURRENT_BASE + chip->leds[led].chan_nr, |
957 | chip->leds[led].led_current); | 960 | chip->leds[led].led_current); |
958 | 961 | ||
959 | INIT_WORK(&(chip->leds[led].brightness_work), | ||
960 | lp5523_led_brightness_work); | ||
961 | |||
962 | led++; | 962 | led++; |
963 | } | 963 | } |
964 | 964 | ||