From patchwork Thu Jul 12 15:50:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10521867 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 6D3FB602C8 for ; Thu, 12 Jul 2018 15:50:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5867E29AAF for ; Thu, 12 Jul 2018 15:50:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CAC129AB2; Thu, 12 Jul 2018 15:50:57 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB2F229AAF for ; Thu, 12 Jul 2018 15:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=xOaftS+pHpPriAXPpn8Vmm2/SN+oJyvrGHw2HzG6Ay4=; b=O5r v1U6SBpA6bJuK83uasIBMihK4OLINj5xRa781gTgf++M2wrjrZXPIYx3gPPw8zUqTb+4nzcISmMS/ oWUmDz+3tU2x2cGhGQ+zbfJmCGaXe6ZTMM6DHEPdeXfhd8xlToXEP2v3Bm+ShkvVpdFWIPFA4H0w6 nmp0MFEJhUp4bJzp/ylk8ltGy+bTW55Qqes8kQIZbHdlovFBALKbESWiJGr4L8V7gr45VAZmp6MwE dvK3eNL6Qgv07BIw2wuKam9xXl2KOX+dz1Nkco39AcyokxS5d13izOD9J1S5vLHpon86UQxUdvu7c 52AT2wFYZ89rDNV4aM9Vi2lnmOMUp7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fddrp-0002Xe-Az; Thu, 12 Jul 2018 15:50:53 +0000 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fddrl-0002Vp-U4 for linux-arm-kernel@lists.infradead.org; Thu, 12 Jul 2018 15:50:51 +0000 Received: by mail-yw0-x244.google.com with SMTP id l189-v6so10615780ywb.10 for ; Thu, 12 Jul 2018 08:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=9LERV7MjszRDzMJDUnh5pPbRgtdThsLaR1zo9mou12Y=; b=gHTXXpFGkiVc4Hp6OhkI6ACmqEr8lQXLSrHuy8BmJipY1qv0BUN0tVhYgoKqeySxXc apIETlnyiwH0nJxJgo+wrLypqI9+kwWzV+uLx/WjZJuEzbfKNDHBTNcFLURVrVbjiVSh NDdvOgoPqRkULhC//kwsyVSmjkVh6RhxM38Z0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9LERV7MjszRDzMJDUnh5pPbRgtdThsLaR1zo9mou12Y=; b=O/9y/f1ZQ8wD8qNAZanbqQ/8HVP6uyiw5SKjgRSfGdSe1YNgBccvRLdm5JTLEmJ+Ri KlrUmoJpJgqNN4usolOGcZF5WNifm19QQlQ4IOxgzF1l2cm9Vs1Z9xfH9PzQgtdcSZyw ZO/CD72Q/Je+mKGXYH6UFrRaqr4oZsAyR2DO3pQqzzcsvPZEoqBkrIA6JUVAN7T9+VVh ln/ViE+WLSfCSVEEepUSyeXiECaOy1rG5hmRfniXFckG9SVLtjU0PpGEberuuOLgLz5k 9aesBPIMUk/+6k2Y+pe3kB2corcfbqZkHPs/hihkUSZxrWhKaUCAI0iPDocETsyQzD5i XUFw== X-Gm-Message-State: AOUpUlEqhaf8LyTublWtbnZR6CzCAFEflKUFiFKLedFNixMIKtV72eGV DkIA49z/STmeDp8R13VoMs55+g== X-Google-Smtp-Source: AAOMgpe7VI+T17fFVYp2spJ1dsIquNfKW2LGx9cVorR9VoPJcedPK5Bwm0HQ1R0+XkCprV0RpEZOOw== X-Received: by 2002:a81:c40e:: with SMTP id j14-v6mr1424981ywi.302.1531410638597; Thu, 12 Jul 2018 08:50:38 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id x68-v6sm9204391ywe.2.2018.07.12.08.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 08:50:38 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/sun41: Fix incorrect return type Date: Thu, 12 Jul 2018 11:50:28 -0400 Message-Id: <20180712155037.211625-1-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.203.gfac676dfb9-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180712_085049_992570_5270180E X-CRM114-Status: GOOD ( 13.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Chen-Yu Tsai , Sean Paul , Jernej Skrabec , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We're returning -errno instead of ERR_PTR(-errno). Fixes: af11942ee44e ("drm/sun4i: tcon-top: Cleanup clock handling") Cc: Chen-Yu Tsai Cc: Jernej Skrabec Cc: Maxime Ripard Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Sean Paul --- drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c index 046f8dd66f90..55fe398d8290 100644 --- a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c +++ b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c @@ -99,7 +99,7 @@ static struct clk_hw *sun8i_tcon_top_register_gate(struct device *dev, index = of_property_match_string(dev->of_node, "clock-names", parent); if (index < 0) - return index; + return ERR_PTR(index); parent_name = of_clk_get_parent_name(dev->of_node, index);