summaryrefslogtreecommitdiff
path: root/drivers/clk/imx/clk-gate2.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-07-30 09:22:51 +0800
committerShawn Guo <shawnguo@kernel.org>2020-08-22 12:38:20 +0800
commit870ed5e22ae18b63751140b4050050ca2115ba60 (patch)
tree843dc169db53c1ab3bfe80e17deddfdb041b39de /drivers/clk/imx/clk-gate2.c
parentd7d7518fdcc8f43da69fb40073273e77f24be24f (diff)
clk: imx: Support building i.MX common clock driver as module
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-gate2.c')
-rw-r--r--drivers/clk/imx/clk-gate2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c
index b87ab3c3ba1e..512f6756d644 100644
--- a/drivers/clk/imx/clk-gate2.c
+++ b/drivers/clk/imx/clk-gate2.c
@@ -7,6 +7,7 @@
*/
#include <linux/clk-provider.h>
+#include <linux/export.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/io.h>
@@ -177,3 +178,4 @@ struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name,
return hw;
}
+EXPORT_SYMBOL_GPL(clk_hw_register_gate2);