From patchwork Mon Jun 18 12:53:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 10471261 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 7443B601D7 for ; Mon, 18 Jun 2018 12:53:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 656BE285EF for ; Mon, 18 Jun 2018 12:53:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A4B428607; Mon, 18 Jun 2018 12:53:30 +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 27DA7285EF for ; Mon, 18 Jun 2018 12:53:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 373B36E40B; Mon, 18 Jun 2018 12:53:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 911BB6E3FE; Mon, 18 Jun 2018 12:53:23 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id r125-v6so15364408wmg.2; Mon, 18 Jun 2018 05:53:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=4pxhDwJOizjHcHBw4JIUhZ73zqwKa8LUJnpfwvsrPHc=; b=Fq6LsqS8yqsviL4kKMlTGNShpQSmcrvJn3pwo/xlI/97KNeYEAirfrUQPMMk5BMCqU 5JCSb2oTO+ExsJExTNvusgRwSeIZQjQjhXdL+5DirYqAmscCslZAJ6/EQnvrmP6b3Ejs arqnB4j1mtBtBoTlFcRfale5zQ0D75TB0kegu6icWDOSasb+Zk79WglVx6FmInMOwb2u Agq82P9Y+dyBOBzWuUgmHlqxDJnFwfy/CFQpoF/DAFm6iwDUZDYjk6UCLES5WVrK+72o scBb6Rs4CL1rH1sdpPbwRLgaNvbkdG6HuJ6Hm1PqyYt0espAN75qbSLYCu6RZx+lDxQ9 Z0lA== X-Gm-Message-State: APt69E1ilv3SPZEknts6ZFnajH1Y1M/bkNu6YhQvTPDhcign8R34EKFY ZTYa8pY4w/bz/OI8kIrstzjT6FOL X-Google-Smtp-Source: ADUXVKLq1bt6KjotYEHiHYSthHlZm8c9O9DBc0L3L0C+B7cheJdIlSEf4lvTgPkOf4+mHSvuCoLd1g== X-Received: by 2002:a50:e807:: with SMTP id e7-v6mr11278010edn.235.1529326402071; Mon, 18 Jun 2018 05:53:22 -0700 (PDT) Received: from localhost.localdomain (200116b82a328300a80ff4c3a5bdfeeb.dip.versatel-1u1.de. [2001:16b8:2a32:8300:a80f:f4c3:a5bd:feeb]) by smtp.gmail.com with ESMTPSA id h39-v6sm9660505edb.65.2018.06.18.05.53.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 05:53:21 -0700 (PDT) From: Thomas Zimmermann To: nouveau@lists.freedesktop.org Subject: [PATCH 4/4] drm/nouveau: Replace drm_dev_unref with drm_dev_put Date: Mon, 18 Jun 2018 14:53:12 +0200 Message-Id: <20180618125312.14687-5-tdz@users.sourceforge.net> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180618125312.14687-1-tdz@users.sourceforge.net> References: <20180618125312.14687-1-tdz@users.sourceforge.net> 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: dri-devel@lists.freedesktop.org, Thomas Zimmermann , bskeggs@redhat.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch unifies the naming of DRM functions for reference counting of struct drm_device. The resulting code is more aligned with the rest of the Linux kernel interfaces. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/nouveau/nouveau_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 1ada186fab77..039e23548e08 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c @@ -36,7 +36,7 @@ static int nouveau_platform_probe(struct platform_device *pdev) ret = drm_dev_register(drm, 0); if (ret < 0) { - drm_dev_unref(drm); + drm_dev_put(drm); return ret; }