bus: ti-sysc: Move check for no-reset-on-init
authorTony Lindgren <tony@atomide.com>
Thu, 11 Apr 2024 04:44:30 +0000 (07:44 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 25 Apr 2024 04:29:41 +0000 (07:29 +0300)
commitf2bd276193c92d7987b6246e6dd0a7e42ac9d56a
tree8d4e885c04323cfd3ab0143439c9960c5f600729
parent4cece764965020c22cff7665b18a012006359095
bus: ti-sysc: Move check for no-reset-on-init

We are wrongly checking SYSC_QUIRK_NO_RESET_ON_INIT flag in sysc_reset(),
it can be called also after init from sysc_reinit_module(). Let's move
the check to the init code in preparation for adding reset control support
in the future.

Note that this change is not needed as a fix as there are no known issues
caused by it currently.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c