drm/tinydrm: Call devres version of of_find_backlight
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>
Wed, 24 Jan 2018 16:37:56 +0000 (16:37 +0000)
committerSean Paul <seanpaul@chromium.org>
Tue, 20 Feb 2018 16:07:22 +0000 (11:07 -0500)
Call devm_of_find_backlight (the devres version) instead of
of_find_backlight.

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/244cd4d567cb3944a8cb7633715ffc8ac4e1ce83.1516810725.git.meghana.madhyastha@gmail.com
drivers/gpu/drm/tinydrm/mi0283qt.c
drivers/gpu/drm/tinydrm/st7735r.c

index a8aafce361cbc04d1fe77bd4bde989c04bd5bff7..d8ed6e6f8e059d50894a19fe49205db3da3d6705 100644 (file)
@@ -196,7 +196,7 @@ static int mi0283qt_probe(struct spi_device *spi)
        if (IS_ERR(mipi->regulator))
                return PTR_ERR(mipi->regulator);
 
-       mipi->backlight = of_find_backlight(dev);
+       mipi->backlight = devm_of_find_backlight(dev);
        if (IS_ERR(mipi->backlight))
                return PTR_ERR(mipi->backlight);
 
index 2e6b7b8ec8e3b7c08a98d6069e8bdf38d06372d9..67d197ecfc4b07cf20508a6a3e874e539f68ce2f 100644 (file)
@@ -164,7 +164,7 @@ static int st7735r_probe(struct spi_device *spi)
                return PTR_ERR(dc);
        }
 
-       mipi->backlight = of_find_backlight(dev);
+       mipi->backlight = devm_of_find_backlight(dev);
        if (IS_ERR(mipi->backlight))
                return PTR_ERR(mipi->backlight);