From patchwork Thu May 29 06:30:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 31085 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 200E22054B for ; Thu, 29 May 2014 06:33:30 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 200sf29317961ykr.2 for ; Wed, 28 May 2014 23:33:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=eayaeTXbVdq8DR++CcGv4TB3szwbNcC+ApSlyiakMmo=; b=geAknQlV5qRfuBxcHwEPMqTN9XMFovr1eAFlZRYOjjVQcq5nAlvJYSdZj0vrtPGiVN poOcni1ASnIlFyRKHg9O1xaTuHMlUIBixQpTQe071x4a3pbkAWy52SGtSc1IQ0ZaLTww blKDfqFZwhnQLGdC/2WJimUarUjcOsx1TSdrg1Z88uDqN7ZkqBjgPD1VS60XPDTtYEL7 E7PJ7fFgkgGfJJq4Hh6nGgbW76FHC/dApDkdZBtHhYVIr1W1wEhOboSnQzH8tj142M8i tDlbf/Qh+c+r/yejFKfdwzLtgSPnfdp2TSwdGGxgL/baIoK8uF+zit0USD0nd1OJ3/xv V9lg== X-Gm-Message-State: ALoCoQlov/0uxMrG4e/bZWXanievI3r7KclKP3FU8wRBf1+YZ3svlR33l4XmR44uXd7ckyIH6L4U X-Received: by 10.224.22.131 with SMTP id n3mr2025970qab.2.1401345209655; Wed, 28 May 2014 23:33:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.166 with SMTP id z35ls413678qgz.93.gmail; Wed, 28 May 2014 23:33:29 -0700 (PDT) X-Received: by 10.53.5.67 with SMTP id ck3mr3748762vdd.45.1401345209516; Wed, 28 May 2014 23:33:29 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id wv11si12530814vdc.14.2014.05.28.23.33.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 23:33:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id id10so1522786vcb.27 for ; Wed, 28 May 2014 23:33:29 -0700 (PDT) X-Received: by 10.52.141.74 with SMTP id rm10mr4038736vdb.6.1401345209394; Wed, 28 May 2014 23:33:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp4104vcb; Wed, 28 May 2014 23:33:28 -0700 (PDT) X-Received: by 10.68.200.133 with SMTP id js5mr6096254pbc.138.1401345208628; Wed, 28 May 2014 23:33:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hv12si15212060pac.103.2014.05.28.23.33.28 for ; Wed, 28 May 2014 23:33:28 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756976AbaE2GdR (ORCPT + 27 others); Thu, 29 May 2014 02:33:17 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:41586 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756938AbaE2GdO (ORCPT ); Thu, 29 May 2014 02:33:14 -0400 Received: by mail-pa0-f45.google.com with SMTP id ey11so12313708pad.18 for ; Wed, 28 May 2014 23:33:14 -0700 (PDT) X-Received: by 10.68.106.194 with SMTP id gw2mr5973702pbb.85.1401345194403; Wed, 28 May 2014 23:33:14 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id ba5sm31591799pbc.61.2014.05.28.23.33.12 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 23:33:13 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: kishon@ti.com, sachin.kamat@linaro.org, Sylwester Nawrocki Subject: [PATCH 2/3] phy: exynos-mipi-video: Use PTR_ERR_OR_ZERO Date: Thu, 29 May 2014 12:00:48 +0530 Message-Id: <1401345049-14779-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401345049-14779-1-git-send-email-sachin.kamat@linaro.org> References: <1401345049-14779-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , PTR_ERR_OR_ZERO simplifies the code. Signed-off-by: Sachin Kamat Cc: Sylwester Nawrocki --- drivers/phy/phy-exynos-mipi-video.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/phy/phy-exynos-mipi-video.c b/drivers/phy/phy-exynos-mipi-video.c index ff026689358c..6d6bcf52a10e 100644 --- a/drivers/phy/phy-exynos-mipi-video.c +++ b/drivers/phy/phy-exynos-mipi-video.c @@ -9,6 +9,7 @@ * published by the Free Software Foundation. */ +#include #include #include #include @@ -149,10 +150,8 @@ static int exynos_mipi_video_phy_probe(struct platform_device *pdev) phy_provider = devm_of_phy_provider_register(dev, exynos_mipi_video_phy_xlate); - if (IS_ERR(phy_provider)) - return PTR_ERR(phy_provider); - return 0; + return PTR_ERR_OR_ZERO(phy_provider); } static const struct of_device_id exynos_mipi_video_phy_of_match[] = {