From ea1befe84d9761fac1bf0e88dfefc8a64f4195e8 Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Mon, 28 Sep 2020 17:50:24 +0200 Subject: video: ssd1307fb: fix VBAT supply id 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 Signed-off-by: Sascha Hauer --- drivers/video/ssd1307fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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; -- cgit v1.2.3