From patchwork Thu Mar 21 10:03:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2319071 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 41AD0DFE82 for ; Fri, 22 Mar 2013 11:34:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 52FA8E6361 for ; Fri, 22 Mar 2013 04:34:55 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 7123BE5DD9 for ; Thu, 21 Mar 2013 03:15:16 -0700 (PDT) Received: by mail-pb0-f47.google.com with SMTP id rp2so2117995pbb.6 for ; Thu, 21 Mar 2013 03:15:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=jJRdBhw4arHXVGUIcWRq3DRqQniRh7QGYw6hHxekCZc=; b=LmDYXq46ukCuHwYyDuLy+R+MflXJKtZKStI0uhgYiasLivJiVRkNLxOO4cLX4haimf pK+vpPW34325TA1xqC05Ku2iOjvJdN0Ic4d9ae6d5dzwz2GdiXmp4FPN0UjrWoBw6sZ/ jqWyf43oyPhhEFs8Uu896VgjPMUrJcnwKoeyjCJrKl4LBfHDSlb5i3IJaT2PNysr783e bCUDiSBF7+AHgPDme3V5WXoTQjWT4rC8l7xB74o7JEZvdjfN4V0rL0gAJB6slioKlAIi ucdX/LIFhX6eaRBWmDTlWI2FjKgLvOLsU7cr1VbypOyRLzgZ2LiOt/gzPe+whdvqEcYD xxkg== X-Received: by 10.68.10.227 with SMTP id l3mr14188760pbb.100.1363860916304; Thu, 21 Mar 2013 03:15:16 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id yr10sm5989471pab.6.2013.03.21.03.15.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 21 Mar 2013 03:15:15 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] drm/exynos: drm_rotator: Fix incorrect usage of IS_ERR_OR_NULL Date: Thu, 21 Mar 2013 15:33:59 +0530 Message-Id: <1363860239-916-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1363860239-916-1-git-send-email-sachin.kamat@linaro.org> References: <1363860239-916-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmAibHAamDs12YFflS/n1p5B3P06ujoro14I2HxF4xTsgc7v2N2/8ujwu+zGiv/sdJbNfMP X-Mailman-Approved-At: Fri, 22 Mar 2013 04:33:08 -0700 Cc: sachin.kamat@linaro.org, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Use IS_ERR instead of IS_ERR_OR_NULL on clk_get results. Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_rotator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index a40b9fb..947f09f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -674,7 +674,7 @@ static int rotator_probe(struct platform_device *pdev) } rot->clock = devm_clk_get(dev, "rotator"); - if (IS_ERR_OR_NULL(rot->clock)) { + if (IS_ERR(rot->clock)) { dev_err(dev, "failed to get clock\n"); ret = PTR_ERR(rot->clock); goto err_clk_get;