Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1189164pxu; Fri, 27 Nov 2020 01:41:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOmqqLEmGv/+rMSDjrczMyWJzzVh9EoIwmNJvcGUnPh7nsbzXrozqLX7t5RxOf6QQd1Axg X-Received: by 2002:aa7:c5d7:: with SMTP id h23mr4722738eds.149.1606470070877; Fri, 27 Nov 2020 01:41:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606470070; cv=none; d=google.com; s=arc-20160816; b=uWgCZdINW8PLZ+ulCzQiZy9YuxTzTgzCKHI6/OU2js1bYnYXscFZBKimYv9pcqLmXw hV+jQ9SmfnI1g1w+8H4pVfDlQAAD29fL3IHzCZupZayO2NNgsk1M7A/L22jEStofkn8u jQ2tckbsesSezs3XVvmFxhBLutKyBatIFZJXIwMTx+t7tQ70Tt+UGONt20U8uYVMSeyF +UkTI0cS8ldai9dFJBmW5FzxnQGk+LSHVIQItRp99m1NEEEZS1GtagMTgmQRKcN8ETDY UB/BDEyk3U1swMTvnSkTs7iQoLFqFl9SzaJY9+ppTeomHjH4neZwaAJg1Qp2g8cJrECh iNIQ== 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=XXjwBFlPy5QM9ZqkyOr3tggJ4SBhsDUvwpzM7L9O1Gc=; b=FpVOf/8aJFo+siMD8IyIeSRemeuWrbqlc7fxKIGJ6szr9R3zP5jR4gB9JM20yNj99i MSqhBIkBDeElV/QJJvxDnf2jbgvjayNw63djDqtK5zexrtyz7zT6n3sfZ6Iz7q12L/yl 8fR4i1OYliae1SEXatzCAwZDRp2R/HzAlKufWtzjRDwtwY+wEJqbU7cid8TPfI6klA+G uAu2bj/pDouF6Vrr/WO9sNFQenmtc4tBxOAwvzuyK/Fh56uv6lBeIbWRDJ5spyGNBIE6 cLPe+qWqpBbt6a7sqB1dpbKLjuIzU3ZKslFB8a/uJOgA/+FhgqAyYoijbYQ/9gd6wqBT p4DQ== 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 h7si4666764ejt.22.2020.11.27.01.40.47; Fri, 27 Nov 2020 01:41:10 -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 S2387642AbgKZMCM (ORCPT + 99 others); Thu, 26 Nov 2020 07:02:12 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:8412 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388162AbgKZMCM (ORCPT ); Thu, 26 Nov 2020 07:02:12 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Chbvr274wz74Dg; Thu, 26 Nov 2020 20:01:44 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 26 Nov 2020 20:02:00 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon 3/3] drm/hisilicon: Use the new api devm_drm_irq_install Date: Thu, 26 Nov 2020 20:02:20 +0800 Message-ID: <1606392140-57954-4-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606392140-57954-1-git-send-email-tiantao6@hisilicon.com> References: <1606392140-57954-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 --- 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 ea3d81b..77792e3 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