drm/rockchip: dsi: remove extra component_del() call
authorThomas Hebb <tommyhebb@gmail.com>
Mon, 19 Apr 2021 02:03:04 +0000 (19:03 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 28 May 2021 17:54:03 +0000 (19:54 +0200)
commitb354498bbe65c917d521b3b56317ddc9ab217425
tree59f23d53518425bfde9e6bb0b4cf1720a7387e13
parent43c2de1002d2b70fb5941fa14e97a34e3dc214d4
drm/rockchip: dsi: remove extra component_del() call

commit cf6d100dd238 ("drm/rockchip: dsi: add dual mipi support") added
this devcnt field and call to component_del(). However, these both
appear to be erroneous changes left over from an earlier version of the
patch. In the version merged, nothing ever modifies devcnt, meaning
component_del() runs unconditionally and in addition to the
component_del() calls in dw_mipi_dsi_rockchip_host_detach(). The second
call fails to delete anything and produces a warning in dmesg.

If we look at the previous version of the patch[1], however, we see that
it had logic to calculate devcnt and call component_add() in certain
situations. This was removed in v6, and the fact that the deletion code
was not appears to have been an oversight.

[1] https://patchwork.kernel.org/project/dri-devel/patch/20180821140515.22246-8-heiko@sntech.de/

Fixes: cf6d100dd238 ("drm/rockchip: dsi: add dual mipi support")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/201385acb0eeb5dfb037afdc6a94bfbcdab97f99.1618797778.git.tommyhebb@gmail.com
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c