Commit 1f501d63 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by Michael Turquette

clk: meson: make gxbb explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/clk/meson/Kconfig:config COMMON_CLK_GXBB
drivers/clk/meson/Kconfig:      bool

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.

Also note that MODULE_DEVICE_TABLE and ALIAS are no-op for non-modules.

We also delete the MODULE_LICENSE tag etc. since all that information
was (or is now) contained at the top of the file in the comments.

Cc: Stephen Boyd <>
Cc: Carlo Caione <>
Cc: Kevin Hilman <>
Signed-off-by: default avatarPaul Gortmaker <>
Signed-off-by: default avatarMichael Turquette <>
parent a718ce38
* AmLogic S905 / GXBB Clock Controller Driver
* Copyright (c) 2016 AmLogic, Inc.
* Michael Turquette <>
......@@ -19,7 +21,7 @@
#include <linux/clk-provider.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/init.h>
#include "clkc.h"
#include "gxbb.h"
......@@ -926,7 +928,6 @@ static const struct of_device_id gxbb_clkc_match_table[] = {
{ .compatible = "amlogic,gxbb-clkc" },
{ }
MODULE_DEVICE_TABLE(of, gxbb_match_table);
static struct platform_driver gxbb_driver = {
.probe = gxbb_clkc_probe,
......@@ -940,15 +941,4 @@ static int __init gxbb_clkc_init(void)
return platform_driver_register(&gxbb_driver);
static void __exit gxbb_clkc_exit(void)
MODULE_DESCRIPTION("AmLogic S905 / GXBB Clock Controller Driver");
MODULE_AUTHOR("Michael Turquette <>");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment