hwrng: rockchip - rst is used only during probe
authorMartin Kaiser <martin@kaiser.cx>
Wed, 21 Aug 2024 18:12:34 +0000 (20:12 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Aug 2024 10:22:31 +0000 (18:22 +0800)
commit9c2797093a4095a1d686b6c51fbd321a627855ee
tree24ee03e80f710ecc1315fb90825a65a6bca38e52
parent065c547d951893201de1368863280bc943a35413
hwrng: rockchip - rst is used only during probe

The driver uses the rst variable only for an initial reset when the chip
is probed. There's no need to store rst in the driver's private data, we
can make it a local variable in the probe function.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/rockchip-rng.c