diff options
author | Liu Ying <victor.liu@nxp.com> | 2025-08-06 17:52:24 +0800 |
---|---|---|
committer | Liu Ying <victor.liu@nxp.com> | 2025-08-15 11:19:56 +0800 |
commit | 50a8c08b8b69399a09c2dbcad8ef3fef9d9349d2 (patch) | |
tree | 27ea02fbd81a1bdeefdb40ffb5e430ad4f0c716f /rust/kernel | |
parent | a52dffaa46c2c5ff0b311c4dc1288581f7b9109e (diff) |
drm/bridge: analogix_dp: Fix bailout for devm_drm_bridge_alloc()
devm_drm_bridge_alloc() returns ERR_PTR on failure instead of a
NULL pointer, so use IS_ERR() to check the returned pointer.
While at it, on failure, return ERR_CAST(dp) instead of
ERR_PTR(-ENOMEM) in order not to depend on devm_drm_bridge_alloc()
error code implementation.
Fixes: 48f05c3b4b70 ("drm/bridge: analogix_dp: Use devm_drm_bridge_alloc() API")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://lore.kernel.org/r/20250806095224.527938-1-victor.liu@nxp.com
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions