diff options
Diffstat (limited to 'drivers/leds/leds-lp5521.c')
-rw-r--r-- | drivers/leds/leds-lp5521.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c index faab44900c23..74dc208fb99f 100644 --- a/drivers/leds/leds-lp5521.c +++ b/drivers/leds/leds-lp5521.c | |||
@@ -689,26 +689,6 @@ static void lp5521_unregister_sysfs(struct i2c_client *client) | |||
689 | &lp5521_led_attribute_group); | 689 | &lp5521_led_attribute_group); |
690 | } | 690 | } |
691 | 691 | ||
692 | static void lp5521_deinit_device(struct lp5521_chip *chip); | ||
693 | static int lp5521_init_device(struct lp5521_chip *chip) | ||
694 | { | ||
695 | struct i2c_client *client = chip->client; | ||
696 | struct lp55xx_chip *temp; | ||
697 | int ret; | ||
698 | |||
699 | ret = lp5521_post_init_device(temp); | ||
700 | if (ret < 0) { | ||
701 | dev_err(&client->dev, "error configuring chip\n"); | ||
702 | goto err_config; | ||
703 | } | ||
704 | |||
705 | return 0; | ||
706 | |||
707 | err_config: | ||
708 | lp5521_deinit_device(chip); | ||
709 | return ret; | ||
710 | } | ||
711 | |||
712 | static void lp5521_deinit_device(struct lp5521_chip *chip) | 692 | static void lp5521_deinit_device(struct lp5521_chip *chip) |
713 | { | 693 | { |
714 | struct lp5521_platform_data *pdata = chip->pdata; | 694 | struct lp5521_platform_data *pdata = chip->pdata; |
@@ -860,7 +840,7 @@ static int lp5521_probe(struct i2c_client *client, | |||
860 | 840 | ||
861 | i2c_set_clientdata(client, led); | 841 | i2c_set_clientdata(client, led); |
862 | 842 | ||
863 | ret = lp5521_init_device(old_chip); | 843 | ret = lp55xx_init_device(chip); |
864 | if (ret) | 844 | if (ret) |
865 | goto err_init; | 845 | goto err_init; |
866 | 846 | ||