[PATCH review for 4.9 21/50] drm/fsl-dcu: check for clk_prepare_enable() error

2017-10-07 Thread Levin, Alexander (Sasha Levin)
From: Fabio Estevam [ Upstream commit ef15d36154cc741d7ded4ae4fa0cf7987354e313 ] clk_prepare_enable() may fail, so we should better check its return value. Also place the of_node_put() function right after clk_prepare_enable(), in order to avoid calling of_node_put()

[PATCH review for 4.9 21/50] drm/fsl-dcu: check for clk_prepare_enable() error

2017-10-07 Thread Levin, Alexander (Sasha Levin)
From: Fabio Estevam [ Upstream commit ef15d36154cc741d7ded4ae4fa0cf7987354e313 ] clk_prepare_enable() may fail, so we should better check its return value. Also place the of_node_put() function right after clk_prepare_enable(), in order to avoid calling of_node_put() twice in case