Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp725367pxu; Wed, 2 Dec 2020 01:31:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEBRJD2dVEVIJ88sAqnmrvbobpH5eqT/cixv2eINeBihbOEy0Ic6TMhrtIVy5KB2YiQs5W X-Received: by 2002:a17:906:7146:: with SMTP id z6mr1413184ejj.379.1606901500846; Wed, 02 Dec 2020 01:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606901500; cv=none; d=google.com; s=arc-20160816; b=AFu3At04+gQNAvn0XTXlqtFwnWg96j/cDG2Wba1G5SpSNGaEqapCUnJcehoKanRwfc D4jDQjAYUauDauMzz5+6498RcvTVURF+kQg1nbEgOFZVwZ+G0DbO4t82tYA8gkejySOw rFcp1OFZkszv2hvzvag5g5MZ5cta2DF0AxGjDg79dPaoQDYl2pbOHHJPXQ6kOa3DVLPO g+JcQgP1EmQJEcK8cSdct8iZzXvCzAJijTWj3cEnDOE+S58wC+mAemnAUZl17gOb+aSM o2vUPexikGkGSXQOhBze48Wz2OacwKoiKMxd7OuNaAiGRrISJaBsNtCMBGcQCM+ocb5p KgKQ== 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=bma5sQALUMswv9/n71Q2CfwsKHELIcj8UYKxOA5DxB0=; b=H2y8JkIZX2AgRmszKywsuumJxcK9d29yvNuJXMVr8kV9vKrIZAnHG/W5Clj7ePXBNy KWHyqFg4DGdyn9igsLAtmyz9dxfkwyEeMVD0YMtSwABFYeDGi/dZeqK8C9fy2n4e1pQr qLmUkZn5Gf4+6iEaob8Ek540E0yTVtuLmIymBprbSVCXM4TqXvXMvmGnKta7Lzh4q4RS ZFXXajn1ouf5z6h6/I8LOtou2bHyU65D/6hdBy85SlFwrCoHmlP8DSp38zdvQ1tLYKBJ XfvnmhXH4OEOb3KJAejayxJAaV92uIxHYGwVOJM2CHxBzEJKEATkBIGZ977P2Gm0JXcJ EJGw== 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 v3si714523edt.166.2020.12.02.01.31.16; Wed, 02 Dec 2020 01:31:40 -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 S1728914AbgLBJ1V (ORCPT + 99 others); Wed, 2 Dec 2020 04:27:21 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9093 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbgLBJ1U (ORCPT ); Wed, 2 Dec 2020 04:27:20 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CmD9R4TpqzLyGV; Wed, 2 Dec 2020 17:26:03 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 2 Dec 2020 17:26:35 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 3/3] drm/hisilicon: Use the new api devm_drm_irq_install Date: Wed, 2 Dec 2020 17:26:52 +0800 Message-ID: <1606901212-8214-4-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606901212-8214-1-git-send-email-tiantao6@hisilicon.com> References: <1606901212-8214-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 13e8a28..8020604 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