]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d17b67f0819a5843ceca3c51d48f7ea670e1cd1
tree4e2d93992ad00ff9220977d6d0e990896702b40f
parent8398f66356f48bdfd95bc3db1f77d2d59e7e443e
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