Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4392933pxu; Tue, 1 Dec 2020 04:00:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkbU6pjGKNzgsDLKYlGukeWJtIdmH+3BVBLVTh7tnLMkRwJ8/ofyh/1lWsGK6+qVrYW9An X-Received: by 2002:a50:9e29:: with SMTP id z38mr2706538ede.220.1606824042752; Tue, 01 Dec 2020 04:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606824042; cv=none; d=google.com; s=arc-20160816; b=VNsS6yHkyH0FqCoAdsS0zKgvSi3Vs3qdCR6SjOoBrVrrdk9A8Pj5BFghsMfn9xYBGJ wZC1GUuUT/Gy0jLyKDKgdwAV6M8wApFEOZjTil36JK/H6AZYkgSsnmqDu32tvcZWXJAj XnJG7YS780e706Eo61nvHlp2ES3veXHCVdjLcpstXP9t3scAPDFS/8ejlOwxc4zVPTCu ZbJl6FKF72D6ohiK41Kk0k63L5IlFvuYOQaMkQRV6lBtacquM2+Q2HkIqUSCNyNFosit SAYAC+G/SlGbWEAuiftAoTD0H+j2hqp6RUWlv76f6IDbJEyHhJgESI7bgTZdu0kTm8km T4ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=pdR1cp58gwJfOywUnQmJzcG+drHClPw9X6y+6voLAZw=; b=kix0qNTneghtjmlCVwD6c9RmzGG4/qcvJRTw/nchlxNSe4P8CYpQQOdFchH/CWS3OL PJvx+Ng0BE87oZG1ooe3gTyTxD0xNKykSR8BDeO3GQdTGYxRbrUpb5VSpnhy3rlO12tT iqiVugZuXr91ckUeVpnjhTir80UuucLVICOFuhfUbPq4h4ogA4eI92QXWX1V1jlP1Tq9 784gFQy+G8Q72BoR9tann0bccm8E4dtx0s3Q0cJrjAxfMo+TfWZuya0kOVT417nK2q8D jyHx8sHf59On15z3XowI9+hRpHwPz1basxeshQw7C0xQ1hhj9YM9Tdn877DphJCvhnGR 2r6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si985944edj.6.2020.12.01.04.00.18; Tue, 01 Dec 2020 04:00:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389682AbgLAL4f (ORCPT + 99 others); Tue, 1 Dec 2020 06:56:35 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8174 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730647AbgLAL4d (ORCPT ); Tue, 1 Dec 2020 06:56:33 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4ClgX42BKTz15KHs; Tue, 1 Dec 2020 19:55:16 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Tue, 1 Dec 2020 19:55:38 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 4/4] drm/hisilicon: Use the new api devm_drm_irq_install Date: Tue, 1 Dec 2020 19:55:54 +0800 Message-ID: <1606823754-52451-5-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606823754-52451-1-git-send-email-tiantao6@hisilicon.com> References: <1606823754-52451-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_drm_irq_install to register interrupts so that drm_irq_uninstall is not called when hibmc is removed. Signed-off-by: Tian Tao Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index c5b0b57..c918b6a 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -247,9 +247,6 @@ static int hibmc_unload(struct drm_device *dev) drm_atomic_helper_shutdown(dev); - if (dev->irq_enabled) - drm_irq_uninstall(dev); - pci_disable_msi(dev->pdev); hibmc_kms_fini(priv); hibmc_mm_fini(priv); @@ -284,7 +281,7 @@ static int hibmc_load(struct drm_device *dev) if (ret) { drm_warn(dev, "enabling MSI failed: %d\n", ret); } else { - ret = drm_irq_install(dev, dev->pdev->irq); + ret = devm_drm_irq_install(dev, dev->pdev->irq); if (ret) drm_warn(dev, "install irq failed: %d\n", ret); } -- 2.7.4