OSDN Git Service

clk: sunxi-ng: r40: rewrite init code to a platform driver
authorIcenowy Zheng <icenowy@aosc.io>
Tue, 1 May 2018 16:12:13 +0000 (00:12 +0800)
committerChen-Yu Tsai <wens@csie.org>
Thu, 17 May 2018 06:01:49 +0000 (14:01 +0800)
commitc3bf29f675b7eabe0df66bef3a89677dbccd4e7f
tree4d3748a3ed757e9bceb045c39dee12a4da86a160
parentb7c7b05065aa77ae3d7b70b9139ed58970daed78
clk: sunxi-ng: r40: rewrite init code to a platform driver

As we need to register a regmap on the R40 CCU, there needs to be a
device structure bound to the CCU device node.

Rewrite the R40 CCU driver initial code to make it a proper platform
driver, thus we will have a platform device bound to it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun8i-r40.c