The regulator id should be given without the "-supply" suffix else the
core is searching for "vbat-supply-supply".

Fixes: bf8f62d334 ("video/ssd1307fb: add support for VBAT")
Signed-off-by: Marco Felsch <[email protected]>
---
 drivers/video/ssd1307fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/ssd1307fb.c b/drivers/video/ssd1307fb.c
index 0709399358..994f43dc5c 100644
--- a/drivers/video/ssd1307fb.c
+++ b/drivers/video/ssd1307fb.c
@@ -421,7 +421,7 @@ static int ssd1307fb_probe(struct device_d *dev)
                goto fb_alloc_error;
        }
 
-       par->vbat = regulator_get(&client->dev, "vbat-supply");
+       par->vbat = regulator_get(&client->dev, "vbat");
        if (IS_ERR(par->vbat)) {
                dev_info(&client->dev, "Will not use VBAT");
                par->vbat = NULL;
-- 
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to