Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6807736pxv; Fri, 30 Jul 2021 02:55:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2LeD/AJ0OFcqvL31NnTu7qOh03l2vKtyOr9LbYo4fS1UhpZAk6/7pooAmAvuYpzyK5a9y X-Received: by 2002:a17:906:8606:: with SMTP id o6mr1751550ejx.247.1627638912361; Fri, 30 Jul 2021 02:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627638912; cv=none; d=google.com; s=arc-20160816; b=Z3615LASqRD2OBDTl95Svwj2YSe5IlWjwORjKfhkPulSuwfvwf4FptbZShrO1gmbgd c6TPsXGzAMTEnJ2MMWLIYG8CLzp0GfY0ryi0HgW2xW1TGlNaAnRwlHVmbEsBfHl9SErw u4vZrsuj49QrxxUlzimcrWo0qrVgJn7QeaDHrg/dHDOPPJVPKagfvO2I6eEe3KH6naD5 UkQPtEkECAuY3mgyykcVPN2sOP5uSYt/a8csM4DMfsvN76QMr6UvAhQVF2NHZjzDZ6WH UQMMQ+A4KpzBR4gJWeqeNu+1ZaBaU5mYAZr8zvrUG64EdLiP+GvQzY59vN38xhZlmBm9 RmXg== 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=fu4y9PjbXGZpZccuZeplH+hcYss1iiAkVp1uRCnIK54=; b=D+4V+QjmNEHtNIJlkbj9kg44NKtzl2OXArqNdYKKwAACh5UvttnvfbsNGdlsbs22AB QPK5VmkBA8PR9nXXbrRVpNh6mRy9/WsxjNf26xxbB+f4H0h8sKpU/A/hOomojzwfh/Bu 04hVpalVMxkKAfKvoicGs7mMYtx1uce3AfUU/vKzW2m4ZZ+XOLCK78XfkAY4b0Y6NaT1 nRFVnG+kxV/jSgCPYXh9cjgMqRiu2UCggI90JmlsiHgvsgNimDO4YWdQviIgSi07BHsZ BXh+wshOTLLJoxTckWSC17Oi1OpMjByIswoVpebPj3hBdFqjOIHz76jXXuBK8OKzU9/k lZjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PYTzYbRk; 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 f21si1212760edf.129.2021.07.30.02.54.48; Fri, 30 Jul 2021 02:55:12 -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=PYTzYbRk; 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 S238455AbhG3JvB (ORCPT + 99 others); Fri, 30 Jul 2021 05:51:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:59812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238333AbhG3Jud (ORCPT ); Fri, 30 Jul 2021 05:50:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3E616109D; Fri, 30 Jul 2021 09:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627638628; bh=Z6BIJsdcYwnFuOM9ZkHExFNeqE4EIBKp7kCuktxqcXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PYTzYbRk1LDcAudkz17VQp8UM7b+5bTWrIIrAe7/rpu1fvFrpGyd9ln/9vgjc7UwO YnqTb32+4uYsGvbHPEt7p6ccl50jMLOM67uuv08r9GRz42/4upgeLT5oR7jhqWnRJ6 ptXfiixcua1cbDfYyf0Bl3R7GU1GucjCrRzYdLho/q/nZst5jkTbA1IvDxkCtYEuJU oNdphmYm7qiP36p/UAY7oxGexId2GRy3XIptC4ZF6cNz85bWbv+guPONzG/5KpSOSh FVOK2Rp5/F6NOPNmxtphIa1BdmAHrTGhzeetRJwf/KQHhkdN+8UAOUNpqSUPTEAwSV PPmUli8/PASGw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m9P9t-006s4Y-LI; Fri, 30 Jul 2021 11:50:25 +0200 From: Mauro Carvalho Chehab To: Vinod Koul , Bjorn Helgaas , Rob Herring Cc: Mauro Carvalho Chehab , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Binghui Wang , Lorenzo Pieralisi , Xiaowei Song , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v8 11/11] PCI: kirin: Allow removing the driver Date: Fri, 30 Jul 2021 11:50:14 +0200 Message-Id: <9a482c476a0e99e3f9f4bc6ddb14890daf0b0fd0.1627637745.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 bdf45d29cdc3..25aa840b0ee3 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -831,7 +831,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