diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-21 06:03:57 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2013-04-16 11:07:21 -0400 |
commit | ee7cbafa01aa6c09a7860686964770183d06b5cb (patch) | |
tree | 85dd807be4de86f1c7537175e394687af3b3e531 | |
parent | 1977e6d8786260e2412305b402a3e2fccc3701bd (diff) |
drm/exynos: hdmi: Fix incorrect usage of IS_ERR_OR_NULL
Use IS_ERR instead of IS_ERR_OR_NULL on clk_get results.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 1469ae2ceacd..93b70e9f6e99 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -1809,27 +1809,27 @@ static int hdmi_resources_init(struct hdmi_context *hdata) | |||
1809 | 1809 | ||
1810 | /* get clocks, power */ | 1810 | /* get clocks, power */ |
1811 | res->hdmi = devm_clk_get(dev, "hdmi"); | 1811 | res->hdmi = devm_clk_get(dev, "hdmi"); |
1812 | if (IS_ERR_OR_NULL(res->hdmi)) { | 1812 | if (IS_ERR(res->hdmi)) { |
1813 | DRM_ERROR("failed to get clock 'hdmi'\n"); | 1813 | DRM_ERROR("failed to get clock 'hdmi'\n"); |
1814 | goto fail; | 1814 | goto fail; |
1815 | } | 1815 | } |
1816 | res->sclk_hdmi = devm_clk_get(dev, "sclk_hdmi"); | 1816 | res->sclk_hdmi = devm_clk_get(dev, "sclk_hdmi"); |
1817 | if (IS_ERR_OR_NULL(res->sclk_hdmi)) { | 1817 | if (IS_ERR(res->sclk_hdmi)) { |
1818 | DRM_ERROR("failed to get clock 'sclk_hdmi'\n"); | 1818 | DRM_ERROR("failed to get clock 'sclk_hdmi'\n"); |
1819 | goto fail; | 1819 | goto fail; |
1820 | } | 1820 | } |
1821 | res->sclk_pixel = devm_clk_get(dev, "sclk_pixel"); | 1821 | res->sclk_pixel = devm_clk_get(dev, "sclk_pixel"); |
1822 | if (IS_ERR_OR_NULL(res->sclk_pixel)) { | 1822 | if (IS_ERR(res->sclk_pixel)) { |
1823 | DRM_ERROR("failed to get clock 'sclk_pixel'\n"); | 1823 | DRM_ERROR("failed to get clock 'sclk_pixel'\n"); |
1824 | goto fail; | 1824 | goto fail; |
1825 | } | 1825 | } |
1826 | res->sclk_hdmiphy = devm_clk_get(dev, "sclk_hdmiphy"); | 1826 | res->sclk_hdmiphy = devm_clk_get(dev, "sclk_hdmiphy"); |
1827 | if (IS_ERR_OR_NULL(res->sclk_hdmiphy)) { | 1827 | if (IS_ERR(res->sclk_hdmiphy)) { |
1828 | DRM_ERROR("failed to get clock 'sclk_hdmiphy'\n"); | 1828 | DRM_ERROR("failed to get clock 'sclk_hdmiphy'\n"); |
1829 | goto fail; | 1829 | goto fail; |
1830 | } | 1830 | } |
1831 | res->hdmiphy = devm_clk_get(dev, "hdmiphy"); | 1831 | res->hdmiphy = devm_clk_get(dev, "hdmiphy"); |
1832 | if (IS_ERR_OR_NULL(res->hdmiphy)) { | 1832 | if (IS_ERR(res->hdmiphy)) { |
1833 | DRM_ERROR("failed to get clock 'hdmiphy'\n"); | 1833 | DRM_ERROR("failed to get clock 'hdmiphy'\n"); |
1834 | goto fail; | 1834 | goto fail; |
1835 | } | 1835 | } |