drm: shmob_drm: Check clk_prepare_enable() return value
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 2 Dec 2013 00:52:20 +0000 (01:52 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Dec 2013 01:04:40 +0000 (11:04 +1000)
commitc0c72a85c6c656218a894d4d64485f7bb54820f8
tree4e2d93992ad00ff9220977d6d0e990896702b40f
parent66ee52e284a6cb387a7b28e29e8282da253efc97
drm: shmob_drm: Check clk_prepare_enable() return value

The clk_prepare_enable() call can fail. Check it's return value. We
can't propagate it all the way to the user as the KMS operations in
which the clock is enabled return a void.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/shmobile/shmob_drm_crtc.c