drm/dsi: Add routine to unregister a DSI device
authorArchit Taneja <architt@codeaurora.org>
Fri, 12 Feb 2016 09:18:33 +0000 (14:48 +0530)
committerThierry Reding <treding@nvidia.com>
Wed, 2 Mar 2016 16:02:10 +0000 (17:02 +0100)
commit509e42ce0441df39d5241150c1bec32cf6347b6c
treeb7ae16d69a1e450f695deede72aea64fa630fb2d
parentbf4363ce3a67ba06042351f40841ef4da9b30787
drm/dsi: Add routine to unregister a DSI device

A driver calling mipi_dsi_device_register_full() might want to remove
the device once it's done. It might also require it in an error handling
path in case something went wrong.

Create mipi_dsi_device_unregister() for this purpose and use it within
mipi_dsi_remove_device_fn() as it does the same thing.

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h