From patchwork Wed Mar 28 06:18:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajesh Yadav X-Patchwork-Id: 10312185 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1A61960353 for ; Wed, 28 Mar 2018 06:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C11029ECB for ; Wed, 28 Mar 2018 06:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 007ED29ED1; Wed, 28 Mar 2018 06:18:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9676C29ECB for ; Wed, 28 Mar 2018 06:18:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752154AbeC1GSg (ORCPT ); Wed, 28 Mar 2018 02:18:36 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58404 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072AbeC1GSf (ORCPT ); Wed, 28 Mar 2018 02:18:35 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 185176070A; Wed, 28 Mar 2018 06:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522217915; bh=xE0LxVJQ94zWFmYPD744gRhfyaWEs9yVwGq1VEPDvz0=; h=From:To:Cc:Subject:Date:From; b=W2pPLTPQAU+5tafobG7hE5CZHztQzZom9wrO98t6ahuwQjOIxRu8apESAd5oPVAp9 uUWp3jyPLQFmYd2egZG5s4uHT6+GdsJtgiZzC0bxNnxuDoMstMf6xTy6m9wusQxEF5 /sjszM4hZ1oXG9aBwQdR8o8dSnY8J8gF9wghuJDU= Received: from ryadav-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ryadav@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7DEF060591; Wed, 28 Mar 2018 06:18:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522217914; bh=xE0LxVJQ94zWFmYPD744gRhfyaWEs9yVwGq1VEPDvz0=; h=From:To:Cc:Subject:Date:From; b=Ddp0Ebdb3GZXE/KhFNCdJGY2Mz8bhS4h74qi3YWDn0/Nveu7kALFAJ8C8D2jQLQIG Kn0SsCGeJgAxGQ2HbEv+0+6nmmynYiQpNnyxnRimdkdcCdCRUrANWFvSrKfTyoDBWu ZLsqCYcYWIqwSc7i8aHXcAkCi3+8f0B+EUkZ0kQI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7DEF060591 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ryadav@codeaurora.org From: Rajesh Yadav To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: Rajesh Yadav , robdclark@gmail.com, seanpaul@chromium.org, hoegsberg@chromium.org Subject: [DPU PATCH 2/3] drm/msm: Fix return type mismatch for dpu_kms_init Date: Wed, 28 Mar 2018 11:48:13 +0530 Message-Id: <1522217893-2199-1-git-send-email-ryadav@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP dpu_kms_init returns pointer to struct msm_kms but incase of platform_get_irq() failure, int was returned. Fix the return type to avoid compilation error. Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 8ef75f5..531efa9 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -2027,7 +2027,7 @@ struct msm_kms *dpu_kms_init(struct drm_device *dev) irq = platform_get_irq(pdev, 0); if (irq < 0) { DPU_ERROR("failed to get irq: %d\n", irq); - return irq; + return ERR_PTR(irq); } priv = dev->dev_private;