Messages in this thread | | | Date | Thu, 17 Mar 2022 20:21:06 +0100 | From | Sam Ravnborg <> | Subject | Re: [PATCH,v2] drm/panel: Fix return value check in nt35950_probe() |
| |
On Thu, Mar 17, 2022 at 04:37:07PM +0800, Lu Wei wrote: > In function nt35950_probe(), mipi_dsi_device_register_full() is called > to create a MIPI DSI device. If it fails, a pointer encoded with an error > will be returned, so use IS_ERR() to check the return value. Besides, use > PTR_ERR to return the actual errno. > > Fixes: 623a3531e9cf ("drm/panel: Add driver for Novatek NT35950 DSI DriverIC panels") > Signed-off-by: Lu Wei <luwei32@huawei.com> Acked-by: Sam Ravnborg <sam@ravnborg.org>
| |