drm/panel: novatek,nt39016: Reorder calls in probe
The drm_panel_of_backlight() function must be called after drm_panel_init(), according to the function's documentation; otherwise the backlight won't be properly initialized. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://patchwork.freedesktop.org/patch/msgid/20200820121256.32037-2-paul@crapouillou.net
This commit is contained in:
parent
0b06286579
commit
2f4b769e4d
|
@ -285,6 +285,9 @@ static int nt39016_probe(struct spi_device *spi)
|
|||
return PTR_ERR(panel->map);
|
||||
}
|
||||
|
||||
drm_panel_init(&panel->drm_panel, dev, &nt39016_funcs,
|
||||
DRM_MODE_CONNECTOR_DPI);
|
||||
|
||||
err = drm_panel_of_backlight(&panel->drm_panel);
|
||||
if (err) {
|
||||
if (err != -EPROBE_DEFER)
|
||||
|
@ -292,9 +295,6 @@ static int nt39016_probe(struct spi_device *spi)
|
|||
return err;
|
||||
}
|
||||
|
||||
drm_panel_init(&panel->drm_panel, dev, &nt39016_funcs,
|
||||
DRM_MODE_CONNECTOR_DPI);
|
||||
|
||||
drm_panel_add(&panel->drm_panel);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue