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)
commit66391263f8484aae41cae80753f31c0edc6138af
treefca2526eaa4f994ea299eb0a8e057b88532d8bfa
parent3fb1988aad29185409a9e05a1111b7e2b7e5f8fc
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