Skip to content

Commit

Permalink
clk: sunxi: apb0: Use new macro CLK_OF_DECLARE_DRIVER
Browse files Browse the repository at this point in the history
This driver initializes a clock provider via sun8i_a23_apb0_setup
and then continues the initialization on sun8i_a23_apb0_clk_probe.

Use the new macro to notify the clk subsystem about this behaviour.

Signed-off-by: Ricardo Ribalda Delgado <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
ribalda authored and bebarino committed Aug 13, 2016
1 parent cb1291c commit 915128b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/sunxi/clk-sun8i-apb0.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ static void sun8i_a23_apb0_setup(struct device_node *node)
of_address_to_resource(node, 0, &res);
release_mem_region(res.start, resource_size(&res));
}
CLK_OF_DECLARE(sun8i_a23_apb0, "allwinner,sun8i-a23-apb0-clk",
sun8i_a23_apb0_setup);
CLK_OF_DECLARE_DRIVER(sun8i_a23_apb0, "allwinner,sun8i-a23-apb0-clk",
sun8i_a23_apb0_setup);

static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev)
{
Expand Down

0 comments on commit 915128b

Please sign in to comment.