bus: brcmstb_gisb: Allow building as module
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 24 Sep 2021 19:10:34 +0000 (12:10 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 27 Sep 2021 21:04:08 +0000 (14:04 -0700)
Allow building the Broadcom STB GISB arbiter driver as a module, however
similar to interrupt controller drivers, don't allow its unbind/removal
since it is not quite prepared for that and we want it to catch bus
errors all the time.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/bus/Kconfig
drivers/bus/brcmstb_gisb.c

index a5b96f3aad677be64b8313744612fe2469150aa0..9cfeae3fc244a58a0e2b59cb12b78d3c71d2ed25 100644 (file)
@@ -30,7 +30,7 @@ config ARM_INTEGRATOR_LM
          found on the ARM Integrator AP (Application Platform)
 
 config BRCMSTB_GISB_ARB
-       bool "Broadcom STB GISB bus arbiter"
+       tristate "Broadcom STB GISB bus arbiter"
        depends on ARM || ARM64 || MIPS
        default ARCH_BRCMSTB || BMIPS_GENERIC
        help
index 6551286a60cc4053677b38487cde89305b460dc1..4c2f7d61cb9b437fa0876f83474af2372fec21ac 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (C) 2014-2017 Broadcom
+ * Copyright (C) 2014-2021 Broadcom
  */
 
 #include <linux/init.h>
@@ -536,6 +536,7 @@ static struct platform_driver brcmstb_gisb_arb_driver = {
                .name   = "brcm-gisb-arb",
                .of_match_table = brcmstb_gisb_arb_of_match,
                .pm     = &brcmstb_gisb_arb_pm_ops,
+               .suppress_bind_attrs = true,
        },
 };
 
@@ -546,3 +547,7 @@ static int __init brcm_gisb_driver_init(void)
 }
 
 module_init(brcm_gisb_driver_init);
+
+MODULE_AUTHOR("Broadcom");
+MODULE_DESCRIPTION("Broadcom STB GISB arbiter driver");
+MODULE_LICENSE("GPL v2");