drm/bridge: change return type of drm_bridge_add function
authorInki Dae <inki.dae@samsung.com>
Mon, 3 Jul 2017 08:42:17 +0000 (17:42 +0900)
committerArchit Taneja <architt@codeaurora.org>
Mon, 21 Aug 2017 03:21:53 +0000 (08:51 +0530)
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
drivers/gpu/drm/drm_bridge.c
include/drm/drm_bridge.h

index dc8cdfe1dcacf6dfd2b5e987888820f2524f02a8..1638bfe9627ce21c08ccb3e17b868d13c466bb16 100644 (file)
@@ -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);
 
index 6522d4cbc9d9d7426728198024ce44aa622f2b32..682d01ba920c0fd262087fc2fe164b1679a603e3 100644 (file)
@@ -245,7 +245,7 @@ struct drm_bridge {
        void *driver_private;
 };
 
-int drm_bridge_add(struct drm_bridge *bridge);
+void drm_bridge_add(struct drm_bridge *bridge);
 void drm_bridge_remove(struct drm_bridge *bridge);
 struct drm_bridge *of_drm_find_bridge(struct device_node *np);
 int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,