]> git.baikalelectronics.ru Git - uboot.git/commit
reset: sunxi: Reuse the platform data from the clock driver
authorSamuel Holland <samuel@sholland.org>
Mon, 9 May 2022 05:29:37 +0000 (00:29 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 18 Jul 2022 08:37:50 +0000 (09:37 +0100)
commit80f74d6e090c180e47406280e133eadf5638a204
treefca2526eaa4f994ea299eb0a8e057b88532d8bfa
parent1c632833c5891711eb6565c3f3d41a0e5113a6f0
reset: sunxi: Reuse the platform data from the clock driver

The clock and reset drivers use the exact same platform data. Simplify
them by sharing the object. This is safe because the parent device
(the clock device) always gets its driver model callbacks run first.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/clk/sunxi/clk_sunxi.c
drivers/reset/reset-sunxi.c
include/clk/sunxi.h