summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_bridge.c
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2017-07-03 10:42:17 +0200
committerArchit Taneja <architt@codeaurora.org>2017-08-21 05:21:53 +0200
commit9928688492aea161eeeaad7af34f372794cb2f53 (patch)
tree7389a89d7aaf158fb9d4c0aca4c2877b60b5e759 /drivers/gpu/drm/drm_bridge.c
parentdrm/exynos: mic: clean up drm_bridge_add call (diff)
downloadlinux-9928688492aea161eeeaad7af34f372794cb2f53.tar.xz
linux-9928688492aea161eeeaad7af34f372794cb2f53.zip
drm/bridge: change return type of drm_bridge_add function
This patch changes return type of drm_bridge_add function. This function never return negative value but returns only 0. So it changes the return type of this function to void one. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Archit Taneja <architt@codeaurora.org> Link: https://patchwork.freedesktop.org/patch/msgid/1499071350-25168-2-git-send-email-inki.dae@samsung.com
Diffstat (limited to 'drivers/gpu/drm/drm_bridge.c')
-rw-r--r--drivers/gpu/drm/drm_bridge.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index dc8cdfe1dcac..1638bfe9627c 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -67,17 +67,12 @@ static LIST_HEAD(bridge_list);
* drm_bridge_add - add the given bridge to the global bridge list
*
* @bridge: bridge control structure
- *
- * RETURNS:
- * Unconditionally returns Zero.
*/
-int drm_bridge_add(struct drm_bridge *bridge)
+void drm_bridge_add(struct drm_bridge *bridge)
{
mutex_lock(&bridge_lock);
list_add_tail(&bridge->list, &bridge_list);
mutex_unlock(&bridge_lock);
-
- return 0;
}
EXPORT_SYMBOL(drm_bridge_add);