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: 10521865 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 D1F00603D7 for ; Thu, 12 Jul 2018 15:50:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD7C929AAF for ; Thu, 12 Jul 2018 15:50:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B187529AB2; Thu, 12 Jul 2018 15:50:43 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F8AE29AAF for ; Thu, 12 Jul 2018 15:50:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0CDB89E69; Thu, 12 Jul 2018 15:50:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-x243.google.com (mail-yw0-x243.google.com [IPv6:2607:f8b0:4002:c05::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8172D89E69 for ; Thu, 12 Jul 2018 15:50:39 +0000 (UTC) Received: by mail-yw0-x243.google.com with SMTP id t198-v6so10629867ywc.3 for ; Thu, 12 Jul 2018 08:50:39 -0700 (PDT) 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=liUUgRUs+8pslSaOsslVzVY5adA4+NpHNCieMGRFHhhjwGapXgiuepz3eb4+IJWEin C6wIB+eDrHU5B3L/nOwKWwu268P7sUyEvQpc9wzh816TskWLeC1D91AfRynm8QdQOY8T nNctaNusAIRZG2b+AzQSdU6ljnYuJ9W3eIkgYH56yT2haTsEx9RdaW2sLbyXcNHdz0Sk PLoyHVzp0sfGZVt5Dg3KY9eB6xtsVddLJuz9ETEXqu8nJ1s4bxUWahwlt0cx9WAbhwqe 8XF8ErVfbrNM4Tl5Yt4Ia+TgwhW3CsbZLfUtkBUVwMwjTfoy16TeyuhRBEMsE9Kq1ozJ 4pnA== X-Gm-Message-State: AOUpUlGx6MiI46p8USeG8u9WMbPVzEYIREPmGxu6N9ZjSLalKzhYJwyQ 4fx5sUexOnyfFdxqBuMy0jD7Xup2PPs= 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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);