aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2018-07-12 10:08:18 +0200
committerMaxime Ripard <[email protected]>2018-07-12 18:48:54 +0200
commitb7178ffe7eb86fb9d428801509a5bd54d3ba94da (patch)
treecd7a7bddde069290dbb794dd8a60bd17f84458ad /scripts/gcc-plugins/randomize_layout_plugin.c
parentf88c5ee77496886071e76b5b9fdfee7158f6d079 (diff)
drm/sun4i: tcon-top: Fix return type warning
When commit af11942ee44e ("drm/sun4i: tcon-top: Cleanup clock handling") was merged, the error handling path of the of_property_match_string was changed to take into account the fact that the returned value of that function wasn't an error pointer but an error code. Unfortunately, this introduced a warning since the now returned value is an integer, while the sun8i_tcon_top_register_gate function should return an error pointer. Fix that by calling ERR_PTR. Cc: Jernej Skrabec <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Fixes: af11942ee44e ("drm/sun4i: tcon-top: Cleanup clock handling") Reviewed-by: Daniel Vetter <[email protected]> Reported-by: kbuild test robot <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions