diff options
Diffstat (limited to 'drivers/char/hw_random/trng4xx.c')
-rw-r--r-- | drivers/char/hw_random/trng4xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/trng4xx.c b/drivers/char/hw_random/trng4xx.c index ece45e74aa1..ae62cc20693 100644 --- a/drivers/char/hw_random/trng4xx.c +++ b/drivers/char/hw_random/trng4xx.c @@ -162,7 +162,7 @@ static void trng4xx_chk_overflow(void) } __attribute__((packed)); - rc = trng4xx_hw_write32(TRNG4XX_ALARMCNT_ADDR, val); + rc = trng4xx_hw_read32(TRNG4XX_ALARMCNT_ADDR, &val); if (rc != 0) return; |