Maxime Ripard b7178ffe7e
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 <jernej.skrabec@siol.net>
Cc: Chen-Yu Tsai <wens@csie.org>
Fixes: af11942ee44e ("drm/sun4i: tcon-top: Cleanup clock handling")
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180712080818.3571-1-maxime.ripard@bootlin.com
2018-07-12 18:48:54 +02:00
..
2018-04-25 09:09:22 +02:00
2018-07-04 10:27:12 +10:00
2018-07-02 18:45:56 +03:00
2018-07-06 06:29:24 +10:00
2018-06-22 12:58:08 +10:00
2018-07-06 10:15:47 +02:00
2018-06-20 15:59:34 +02:00
2018-06-22 12:58:08 +10:00
2018-06-06 08:16:33 -07:00
2018-06-28 13:29:07 +10:00
2018-06-22 12:58:08 +10:00
2018-07-02 18:45:55 +03:00
2018-05-03 21:26:32 +02:00
2018-07-09 18:46:05 +02:00