From patchwork Wed Apr 29 20:58:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 11518477 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DF2181 for ; Wed, 29 Apr 2020 20:58:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 574BB2076B for ; Wed, 29 Apr 2020 20:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588193932; bh=rCXAFx7ZOdFUdpPRkzWkQSPkbgiYlrQ60D182QEQf7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gL9IHeao+8gQaXvBtZxoQXncl/T8qLAhLiQo0oWYtr4exI7ODqLu/Xro7UBdZ1kq8 ho0qfdOpauomIwEuvczogzApaA1s7734NePrFL9W9YLu79PH25SO7PDA6WrOYGaU6h 9xIF38pCgUECdlRP8hTS4uuc1dPaI2kJGPjBAG3o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbgD2U6w (ORCPT ); Wed, 29 Apr 2020 16:58:52 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34694 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbgD2U6v (ORCPT ); Wed, 29 Apr 2020 16:58:51 -0400 Received: by mail-ot1-f66.google.com with SMTP id 72so3005173otu.1; Wed, 29 Apr 2020 13:58:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pWYvadUHhNmHMbwqybGHGQMT9Gw6sFtWQjTu42eM8C0=; b=V38S/ukS8nn50Fh2GExci2Ft5xN/E2Etp/jzIUdEB3ek3Bvgdj3FxcjpO5LCGLeILC n6reMY4JWy0TMM6yzTW89ELFzP5c5nQZoE71sntSbTfNQpLQd5LdWr5ltoiYMSVbXjaH EjnapdE1TtSNSiJxZtzBqAGtp9tsouNg+WOH25Rf7cv7vmUuSHC1eLcdqGDc/aXKHQzl b/ElU/U/617bnd48PsXMQtyoYVzOvoHgIH+JjT/FnE8yKKCBl11+WFZGxeVpUyyPLJGf jaVSGPUv14cGvG3LEBVFz1VAd17OwKA3EozJ53ONm5Pcu1wvhtghyrzy1Eo77pi5DEmz 6Kjw== X-Gm-Message-State: AGi0PuaCKix6w/fqDZCQjN2u3SUWJxVkuufuOMA6RasvK7ba0AKE2RLz l9dbzhCIh7H0rcABgxpHnipkU6U= X-Google-Smtp-Source: APiQypIEjHDyKVTXOVc+6IBJv/YMhCsxT0ApwM+suaKheeb6cM9wNc0N3d5PdgsvPksLVNF11I2D6A== X-Received: by 2002:a9d:1ee7:: with SMTP id n94mr27119542otn.26.1588193929527; Wed, 29 Apr 2020 13:58:49 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id z13sm653162oth.10.2020.04.29.13.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 13:58:48 -0700 (PDT) From: Rob Herring To: Linus Walleij , Liviu Dudau , Lorenzo Pieralisi , Sudeep Holla Cc: Kevin Brodsky , Arnd Bergmann , Catalin Marinas , Greg Kroah-Hartman , Lee Jones , Sebastian Reichel , Stephen Boyd , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v2 15/16] bus: vexpress-config: Support building as module Date: Wed, 29 Apr 2020 15:58:24 -0500 Message-Id: <20200429205825.10604-16-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200429205825.10604-1-robh@kernel.org> References: <20200429205825.10604-1-robh@kernel.org> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Enable building vexpress-config driver as a module. Cc: Sudeep Holla Cc: Lorenzo Pieralisi Cc: Linus Walleij Cc: Greg Kroah-Hartman Acked-by: Liviu Dudau Signed-off-by: Rob Herring Reviewed-by: Sudeep Holla --- drivers/bus/Kconfig | 2 +- drivers/bus/vexpress-config.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 6d4e4497b59b..c16268c53831 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -183,7 +183,7 @@ config UNIPHIER_SYSTEM_BUS needed to use on-board devices connected to UniPhier SoCs. config VEXPRESS_CONFIG - bool "Versatile Express configuration bus" + tristate "Versatile Express configuration bus" default y if ARCH_VEXPRESS depends on ARM || ARM64 depends on OF diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index caa35a4cb34d..a58ac0c8e282 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -407,15 +408,12 @@ static const struct platform_device_id vexpress_syscfg_id_table[] = { { "vexpress-syscfg", }, {}, }; +MODULE_DEVICE_TABLE(platform, vexpress_syscfg_id_table); static struct platform_driver vexpress_syscfg_driver = { .driver.name = "vexpress-syscfg", .id_table = vexpress_syscfg_id_table, .probe = vexpress_syscfg_probe, }; - -static int __init vexpress_syscfg_init(void) -{ - return platform_driver_register(&vexpress_syscfg_driver); -} -core_initcall(vexpress_syscfg_init); +module_platform_driver(vexpress_syscfg_driver); +MODULE_LICENSE("GPL v2");