aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/hw_random/trng4xx.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-08-13 16:29:15 -0500
committerDavid Barksdale <amatus@amatus.name>2014-08-13 16:29:15 -0500
commit205ac4d83fc388c1e2d0bb590a2a36e9a4c2fd78 (patch)
tree1dbd529848c396058dfc9c8a4f402dcbe3546317 /drivers/char/hw_random/trng4xx.c
parentace6c6d243016e272050787c14e27a83ecd94a25 (diff)
Diffstat (limited to 'drivers/char/hw_random/trng4xx.c')
-rw-r--r--drivers/char/hw_random/trng4xx.c2
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;