clk: rmobile: Move preboot clock shutdown to the driver
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 25 Nov 2017 21:08:55 +0000 (22:08 +0100)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 30 Nov 2017 01:32:33 +0000 (02:32 +0100)
commit18cac5afc288fa30eb72421276b0bfd5d2e83ba6
treee7ee5716bb67d7ec3465d147d821e05e3ca2cee3
parent942ee0933e881ff500aae7e42309bf6abbc495d4
clk: rmobile: Move preboot clock shutdown to the driver

The MSTP registers were poked in boards/renesas/rcar-common/common.c
in arch_preboot_os hook thus far to shut down the clock before Linux
takes over. With DM, this is no longer needed and we can do the same
in the clock driver .remove callback. This patch adds such a .remove
callback for R8A7795 and R8A7796.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/clk/renesas/clk-rcar-gen3.c