Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3747527pxt; Tue, 10 Aug 2021 10:21:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznN2mtG8Bi4QqnemGhMC+nShioQw6Ak3mZpRU4WhLjXGz1cnt5uN4s2jpcA7jEbR00HLvR X-Received: by 2002:a02:cc21:: with SMTP id o1mr28343629jap.114.1628616105681; Tue, 10 Aug 2021 10:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628616105; cv=none; d=google.com; s=arc-20160816; b=Xw/igcLaCzYfsyKIwRt7h4qmXlF7OSpOOf2FWXP63BL2qXc90RtnNUdBAi2j+gxVG+ v6mlmSRUCH6IC0oPaGcPTjiRDzPy0/GbnVKRkCXh5QXr14wcub/T18KXaiO4JVO6KwVN j/YKt63dnL2EjMIqCzaGGFTKTZucieEOTc9cOznrYVBLbzWM5FKG1N9Au9H4EGKdUgqJ RSKXspni5AMarxcI1jgQSqfl6ui40c8L+TIwUa/VP1wD0DYMh9fusHj9ZzjJ/Ftax+h6 kU6f5Pa+nSTL4gwGWMnWHh2vMu58Cfvrjt2Ne18Uc+i2Ttmm5hfKKSCciFB9F41s0uvX D6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AD+PBlYY/SLnq5z7O8939tDmsONvqkSiKqwBQ+NAIl8=; b=tlPyNHzxBArmScZAwoN4fESdelLVUGcfuxAjXPmJXEnV5X5USSXKkvJGbm1y7kBCgh c8nq/NhDQkeLD0U/ndiGCn9tyt1LlDlv0h7Ws04iOKen6rf/qzSV11JGZEjVsHVWZk7H qs7LDj5DLPCVITeaMM4sJoTSWV30Q4MeypJ1cAtD2iXhMhsBj86ZElXNFlrA8Etmn5f2 dIA09fG5W2+9IXE2dGmJ9L2RvYL31jWRAobpO6Bla+IeXApgqyW4tHesCevVL+GrUVUS TEYzi9pygi7vPivh+tefs7VtiV8x438o6wgVuUkTNmZbadNND3d4O/6yvw714u3VauO0 jK5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r6lbQWC6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si23769654ilp.102.2021.08.10.10.21.31; Tue, 10 Aug 2021 10:21:45 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r6lbQWC6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239529AbhHJJ44 (ORCPT + 99 others); Tue, 10 Aug 2021 05:56:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:42996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239316AbhHJJ4L (ORCPT ); Tue, 10 Aug 2021 05:56:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F9FB610A7; Tue, 10 Aug 2021 09:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628589349; bh=/ntXjC0T/LfuRQkxXY7V2CnXziznXTVk99SyCyqh69g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r6lbQWC6N3YuSJFnTmPdPQ4BggpPnj9vU9bqmrWabqkB9w52AXsitIQTAkzD3AhvT WPNjraM050QXi3ShOxQTSKRFYU/5XOIYkulOleY1n0NWRUaOUNJ19q0lCQvfrex8NU OICH8G9oWeyPTi7qWKLEQMAZvCPJgj65BqkBillENx4w6myqSt8vCJ9Dn1klv9kJUA KQUZqeMcvbY9olAJ7dyYvp0BRfCSJXazzB9c0TFxt0VldlJGr9iAjqFE2qggWz0azZ xlhHwBcwPZQPeMmuh0G2sBguRa70eAI25Z4Z+JEmuY5BxE2l3/2nxlA7xA2UNw93As M4VyWeiKBaICQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mDOU6-00AcGF-4L; Tue, 10 Aug 2021 11:55:46 +0200 From: Mauro Carvalho Chehab To: Vinod Koul , Bjorn Helgaas Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Binghui Wang , Lorenzo Pieralisi , Rob Herring , Xiaowei Song , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v10 11/11] PCI: kirin: Allow removing the driver Date: Tue, 10 Aug 2021 11:55:42 +0200 Message-Id: <22fc912a3e6c1c6c25c672eefad89bb21164ff6f.1628589155.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that everything is in place at the poweroff sequence, this driver can use module_platform_driver(), which allows it to be removed. Signed-off-by: Mauro Carvalho Chehab --- drivers/pci/controller/dwc/pcie-kirin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index 5535605ab1e7..7cbe434a3bd1 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -826,7 +826,7 @@ static struct platform_driver kirin_pcie_driver = { .suppress_bind_attrs = true, }, }; -builtin_platform_driver(kirin_pcie_driver); +module_platform_driver(kirin_pcie_driver); MODULE_DEVICE_TABLE(of, kirin_pcie_match); MODULE_DESCRIPTION("PCIe host controller driver for Kirin Phone SoCs"); -- 2.31.1