Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp703762pxu; Wed, 2 Dec 2020 00:50:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeDDMTl+gHDH5QwisI9yqXMYAE5VMr3P+TLAnZGPKYNjiL5o4AEM4HngX2qcWKG/nGLo9K X-Received: by 2002:a17:906:2b95:: with SMTP id m21mr1371878ejg.134.1606899030101; Wed, 02 Dec 2020 00:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606899030; cv=none; d=google.com; s=arc-20160816; b=Przito+hrEvxS54w4b9Dg9khvBYQ5zotKpZOoor3AJAzFn/8iZuBPzXnF8QLgJnpc0 zwUkAtq884ubdVAuNLytFJxbtNqPj1KYqLpEWUbOaWoPdrrmMCCkhMW0u1oLrDCaBBND 1SB8ecA9mlK0H1+ObpRE8IcJUlTC85UzojZ1QGjor5JOzhgwUDgZYA6d2sT/msXQi7fb r6kMjfl+ex1T4k8Tw6jtrK/2p/WDQ43QdLRrmMuiZygHYnHmNgH9s8pP2zF+grTuvkxI AJpYzmfeg3Qzz5WhxU82sJYhdk302rfsi2fbGIX2vHelYOC4xaznKY72oAyCFYeAMWEx qPEg== 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=knRjaPr1uzxmmjH5JRaXnaDRcZsXhK+SrAXdDQj4+oByZB2GZpdJVRhCf/WS+15/6L Cqm0PnKCsnJe9yZ63EaLfaaiRCwFNnxtOhU2zrxKlsyWGkDgGroDXzkXxjlhYExD5TKU sPumGHx0S8cvC9fe28L4KrFEeNQ0Y71k+kapGVCIl1dLw6dbeO3u7/yMoIGzduGjBmuv poJnzN78N/9kBu+rpdQ7Iu9LHUy/GEAReTSPbUqt6xiplMgfHsBBY17OYnuQHG81aEd4 y9ox1QSmKQPkcZ5HYdfHJ4M7ABtRdROnisaT0z75XP39ASG2olradv+CpaxnrjFLtZbx GW3Q== 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 c1si655431edx.275.2020.12.02.00.50.06; Wed, 02 Dec 2020 00:50:30 -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 S1729224AbgLBIro (ORCPT + 99 others); Wed, 2 Dec 2020 03:47:44 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:8904 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726309AbgLBIrn (ORCPT ); Wed, 2 Dec 2020 03:47:43 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CmCHv4bnNz7786; Wed, 2 Dec 2020 16:46:35 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Wed, 2 Dec 2020 16:47:00 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon 3/3] drm/hisilicon: Use the new api devm_drm_irq_install Date: Wed, 2 Dec 2020 16:47:15 +0800 Message-ID: <1606898835-40775-4-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606898835-40775-1-git-send-email-tiantao6@hisilicon.com> References: <1606898835-40775-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