Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp206215pxt; Wed, 4 Aug 2021 09:06:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyri0noayzL24TW951lKiWlN8UCMavV55/p4MdHIhjuQvl5Jkl6RJsLZh9ZAXuD8v7uoSKQ X-Received: by 2002:a17:906:1416:: with SMTP id p22mr25974198ejc.364.1628093175177; Wed, 04 Aug 2021 09:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628093175; cv=none; d=google.com; s=arc-20160816; b=H0clXDSAhb+f6UZTkKYN+ObncwVTxulg2SMi8IVqfPyRp5OECDpzlQ0iN6+qSQ5G9T GJ88ltSD8lG1t2dlKv8yhibdEQjh0vjZeqUyG6YOjd7RiVlrHK5I0mbrxIhgAxNo4EbB tlj5G6WVJ4xLz86SkEU8Q2By+txyCP8YLagN9hPHztSc9kt2v98uKp3n26UQAwCaES9o ZzTIseJlfHFEsI7v4wSblvY3R8vGLT/ekgI/TlywMP58INt1TmYCYts5ZV0Yx/LBV2iQ RTsC3LhD/0SLI58NHvfGjw8vIaUhb0mIQoBqCmsGtF7qrjInf55xGezmXImI6+NaQSBl RL3g== 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=y+MgtWXlWSmrIWRXJlUiV+KSpx8AnObSr8wFCvj7zw0=; b=e8eBSm0dZsYsZ4jmis09bjqThV1oLeI6TpedH4s9N4fWPGkvaR5UUpjroHt2GQ1hO5 lGThrMm3Z4uWY9nT0bMQWZgzwbAzOMdV/tipNezj6Ns2nDFJIKcCSFAFZTC+bUrbQ97p o9m+PySpcASW5RoAxUH4ude2S+RupUL7Vy8aYBzAVvaBN3yqGkD6xFrFUPFEK2/HSLZW H6Q3C5Comv9LHXBPmGMWr0O5RyRyTx9tLVYnx9HdWMLFD8sUMCfSrBslE3wvMGVG8hLt ViAqYMZr4gc6kNwZEX85IhI6NVVe0rARy3Gc5dUG3OlKq4ePbp51WrFiGoyzEIyl9IvN HdMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ig7FfPss; 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 s6si2764437edq.246.2021.08.04.09.05.50; Wed, 04 Aug 2021 09:06:15 -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=Ig7FfPss; 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 S229944AbhHDQDs (ORCPT + 99 others); Wed, 4 Aug 2021 12:03:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:58930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbhHDQDX (ORCPT ); Wed, 4 Aug 2021 12:03:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E0BB610FE; Wed, 4 Aug 2021 16:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628092990; bh=wetJkBodZerJ/NhpLSwniXo9kEVaVggniuUUJmFEsK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ig7FfPss63pFtM09gXJVAKVuhgz4tJ1bF9DMZtlMkeOaJ0+4wqCjJUUGEYrZWpsIW 84bbLs4TXHqbqu5/lkTw5fUd27gBrPOd5p91pVb7wdPMX/j2r7RMz+VML1G9jCnK+9 CnPHd/Gqyv4k7VO7LZCRMUFXDaNlt0whQLkZnir5PhS/ZNfdNt1GVdZtg2oeXjSpnr 1tkgHEfXkC0aQ/CHt/t+WLC1nGWYJOElKGCGNfqmwDHCEaNlC/NAc9qHUubK/T9LTn Nr2gQOoNa8lkVWEK2jUPgT8GtunY6hIfZfnjvrirIhGs6Q07hzYNUr6Bh6iH3HJ0Fv m6jOG+slGULbw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mBJMK-000Q00-RU; Wed, 04 Aug 2021 18:03:08 +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?= , "Rob Herring" , Binghui Wang , Lorenzo Pieralisi , Xiaowei Song , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v9 11/11] PCI: kirin: Allow removing the driver Date: Wed, 4 Aug 2021 18:03:07 +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 81fcd46d1346..4e6f479d496b 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -830,7 +830,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