Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp412199pxt; Thu, 12 Aug 2021 01:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3SsrCSHykdABnoJt+nVDA68NDBjAjHzmXllao2uFCQrR3p80U8WfxobDRVTxtaf1mtOSc X-Received: by 2002:a05:6402:4386:: with SMTP id o6mr4047539edc.6.1628755590955; Thu, 12 Aug 2021 01:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628755590; cv=none; d=google.com; s=arc-20160816; b=WF6YsfjlL3wYokJ92MUoqvbhnU6pkSI/P7PhccTfmZedCtUsIxsAt5cprKmHUTFeuk 2fNyR6n4E3NCHZyDzlew1rmRXvi/Tsw3uh+Q0wEOCB2iVA1JyHtBUt/QN5JQTuqhZOUu r8nE726jtyz9vQ9dK2pAM5YEwFzTrydTRrjTFiF4LxSkgxLw7QXYesY6NwM0BPI54u7+ TwNpvxlVy/uRjZiuyXSus8lurOmuU+fuCvZOuQCxVAZTeQdKZKPt8bCB9AOd0Qw3Lark SaO88UxixDju7wXyNC2dcFPbP/zJqIvePijwN7/HuCp3GraCC2e/2XQCDPOSlW8AQO8J 316g== 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=lVCTfbk6OkSMeNq1TlvT1OCsh1rIYjkTueRYZvmVkS0=; b=ypwkQxhYlqHx2zUwxOTLmvhFxnTeACsJmcbn09CDaLvC80L3dM69mYpVW7IMDJrRH6 rKCXPGK8bebz/E0TfeoyziXF4pUjy2tn6VnG15qysGPgJ0nk1ow/iap2pdmLheEIL79k K/vuNXGPfOwv3047mhMKexdfnDUvxDflRXplIifOWqr/i1RsdXh0e5mQLZulVceCknp3 i62Zt95TvkRdROYaH2ZUoMuQlEOcPJ6JVamxQBG/zGH6/J0m0/zs4UGmqw6v8HXQmELn T7K7RclxOCBWtSzTZioIlfHsfT/JivkP0r89W4X4pggS4TC3aJ1aOe5HLP4prK0N740M Zc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dQzHtAld; 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 a13si1974238edr.41.2021.08.12.01.06.07; Thu, 12 Aug 2021 01:06:30 -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=dQzHtAld; 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 S235305AbhHLIEh (ORCPT + 99 others); Thu, 12 Aug 2021 04:04:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:51226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234970AbhHLIC4 (ORCPT ); Thu, 12 Aug 2021 04:02:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B20EB610FD; Thu, 12 Aug 2021 08:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628755345; bh=xz9VdBai8kDRZlAuH/LmiLpbxSzuVqNkds8wTrCCAsI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dQzHtAldjcNxH23S7IH1hKUu0L7FTaEHV8QiYTtJoTdLDUaltffT9zFSGfbb9J0tt QcTDsGATu8g2D7TC12AUpZEkGpY98X2RsFcyuuPu48Arxx9Zq4Sgyo9eZH5y6kdu+5 OqbP54qdgSMvHasKJTGR7xL0DgtL4KPCAwcRq5Z0pRWbKAgueRGwYDFC0haYc99vdm A57K/juXSJuTLFY67/06pPbGWhw1IxwhU/7UwFP/Inz4NSC1yA4+V2oMTF+9DxmG/F aFofWD6IPBOr3PlDUzW0tZXBzfsrFgY2EC4YxkBxuCNc/KSqWKVdYQuAg4kndPygOS eU5dPDwIB1rZg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mE5fU-00DZDN-1G; Thu, 12 Aug 2021 10:02:24 +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 v11 11/11] PCI: kirin: Allow removing the driver Date: Thu, 12 Aug 2021 10:02:22 +0200 Message-Id: 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 ffc63d12f8ed..efab2af093b6 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -828,7 +828,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