diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-02 08:45:09 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-02 08:46:33 -0500 |
commit | 34ce8d07e63baa37d21aeca87f3248b008114899 (patch) | |
tree | dd40b2f9b587581f46d65d4454d29e62f6bae232 | |
parent | 1e0c66f49762fa1866ab20b1feb6e86a9aa4838f (diff) |
regulator: wm8350: Don't specify consumer supplies with struct device
Very, very deprecated.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/regulator/wm8350-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c index 6894009d815a..4f46067455c8 100644 --- a/drivers/regulator/wm8350-regulator.c +++ b/drivers/regulator/wm8350-regulator.c | |||
@@ -1544,7 +1544,7 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink, | |||
1544 | return -ENOMEM; | 1544 | return -ENOMEM; |
1545 | } | 1545 | } |
1546 | 1546 | ||
1547 | led->isink_consumer.dev = &pdev->dev; | 1547 | led->isink_consumer.dev_name = dev_name(&pdev->dev); |
1548 | led->isink_consumer.supply = "led_isink"; | 1548 | led->isink_consumer.supply = "led_isink"; |
1549 | led->isink_init.num_consumer_supplies = 1; | 1549 | led->isink_init.num_consumer_supplies = 1; |
1550 | led->isink_init.consumer_supplies = &led->isink_consumer; | 1550 | led->isink_init.consumer_supplies = &led->isink_consumer; |
@@ -1559,7 +1559,7 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink, | |||
1559 | return ret; | 1559 | return ret; |
1560 | } | 1560 | } |
1561 | 1561 | ||
1562 | led->dcdc_consumer.dev = &pdev->dev; | 1562 | led->dcdc_consumer.dev_name = dev_name(&pdev->dev); |
1563 | led->dcdc_consumer.supply = "led_vcc"; | 1563 | led->dcdc_consumer.supply = "led_vcc"; |
1564 | led->dcdc_init.num_consumer_supplies = 1; | 1564 | led->dcdc_init.num_consumer_supplies = 1; |
1565 | led->dcdc_init.consumer_supplies = &led->dcdc_consumer; | 1565 | led->dcdc_init.consumer_supplies = &led->dcdc_consumer; |