aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/mediatek/mtk-platform.h
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-07 15:14:49 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-03-16 17:58:50 +0800
commit43ec540e6f9b8e795dc9000114636ff72afc5b01 (patch)
tree61e25d3458e3590d56b35cf1df34411b965a7989 /drivers/crypto/mediatek/mtk-platform.h
parenthwrng: meson - add clock handling to driver (diff)
downloadlinux-dev-43ec540e6f9b8e795dc9000114636ff72afc5b01.tar.xz
linux-dev-43ec540e6f9b8e795dc9000114636ff72afc5b01.zip
hwrng: omap - move clock related code to omap_rng_probe()
Currently, the code that takes a reference to the clock and enables it is located inside of_get_omap_rng_device_details(), called only when probing through the Device Tree. However, there is nothing that makes this clock logic dependent on the Device Tree, so it makes more sense to have it in omap_rng_probe() directly. Moreover, we make sure to bail out if we can't enable the clock. Indeed, while the clock is optional, if a clock is present, we really want to succeed in enabling it. And we fix the error message to fit on one line, so that it is grep-friendly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/mediatek/mtk-platform.h')
0 files changed, 0 insertions, 0 deletions