Skip to content

Commit

Permalink
drm/bridge: change return type of drm_bridge_add function
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Archit Taneja <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
daeinki authored and boddob committed Aug 21, 2017
1 parent 059e3c0 commit 9928688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions drivers/gpu/drm/drm_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/drm/drm_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9928688

Please sign in to comment.