clk: sunxi: sun6i-apb0-gates: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 28 Aug 2015 12:43:33 +0000 (14:43 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 16 Sep 2015 22:22:25 +0000 (15:22 -0700)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luis@debethencourt.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi/clk-sun6i-apb0-gates.c

index 64f3e46d383cc2ede89889cb7b2d4e9b26d0a22a..23d042aabb4f7724d2cf1602b8a2b1f4028a8c41 100644 (file)
@@ -34,6 +34,7 @@ static const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = {
        { .compatible = "allwinner,sun8i-a23-apb0-gates-clk", .data = &sun8i_a23_apb0_gates },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, sun6i_a31_apb0_gates_clk_dt_ids);
 
 static int sun6i_a31_apb0_gates_clk_probe(struct platform_device *pdev)
 {