diff options
author | Chia-Wei Wang <chiawei_wang@aspeedtech.com> | 2021-07-20 15:01:36 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-24 08:57:53 -0400 |
commit | bc7b38450baa4efe71bb14ea8aab9e8d206073fd (patch) | |
tree | c8138c93684e44d6d309e4675d5c86f704b992b4 | |
parent | 198201509a460c8f1b85e3447b35599129f4f885 (diff) | |
download | u-boot-bc7b38450baa4efe71bb14ea8aab9e8d206073fd.zip u-boot-bc7b38450baa4efe71bb14ea8aab9e8d206073fd.tar.gz u-boot-bc7b38450baa4efe71bb14ea8aab9e8d206073fd.tar.bz2 |
reset: ast2600: Fix missing reference operator
Fix missing reference operator '&' to correctly get
HW register addresses for writel().
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
-rw-r--r-- | drivers/reset/reset-ast2600.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/reset/reset-ast2600.c b/drivers/reset/reset-ast2600.c index f64adaf..195ddd1 100644 --- a/drivers/reset/reset-ast2600.c +++ b/drivers/reset/reset-ast2600.c @@ -41,9 +41,9 @@ static int ast2600_reset_assert(struct reset_ctl *reset_ctl) debug("%s: reset_ctl->id: %lu\n", __func__, reset_ctl->id); if (reset_ctl->id < 32) - writel(BIT(reset_ctl->id), scu->modrst_ctrl1); + writel(BIT(reset_ctl->id), &scu->modrst_ctrl1); else - writel(BIT(reset_ctl->id - 32), scu->modrst_ctrl2); + writel(BIT(reset_ctl->id - 32), &scu->modrst_ctrl2); return 0; } @@ -56,9 +56,9 @@ static int ast2600_reset_deassert(struct reset_ctl *reset_ctl) debug("%s: reset_ctl->id: %lu\n", __func__, reset_ctl->id); if (reset_ctl->id < 32) - writel(BIT(reset_ctl->id), scu->modrst_clr1); + writel(BIT(reset_ctl->id), &scu->modrst_clr1); else - writel(BIT(reset_ctl->id - 32), scu->modrst_clr2); + writel(BIT(reset_ctl->id - 32), &scu->modrst_clr2); return 0; } |