regulator: wm8350: Don't specify consumer supplies with struct device
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 2 Feb 2012 13:45:09 +0000 (13:45 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 2 Feb 2012 13:46:33 +0000 (13:46 +0000)
Very, very deprecated.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/wm8350-regulator.c

index 6894009..4f46067 100644 (file)
@@ -1544,7 +1544,7 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink,
                return -ENOMEM;
        }
 
-       led->isink_consumer.dev = &pdev->dev;
+       led->isink_consumer.dev_name = dev_name(&pdev->dev);
        led->isink_consumer.supply = "led_isink";
        led->isink_init.num_consumer_supplies = 1;
        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,
                return ret;
        }
 
-       led->dcdc_consumer.dev = &pdev->dev;
+       led->dcdc_consumer.dev_name = dev_name(&pdev->dev);
        led->dcdc_consumer.supply = "led_vcc";
        led->dcdc_init.num_consumer_supplies = 1;
        led->dcdc_init.consumer_supplies = &led->dcdc_consumer;