• Tony Lindgren's avatar
    hwrng: omap3-rom - Use runtime PM instead of custom functions · 8d9d4bdc
    Tony Lindgren authored
    Nowadays we have runtime PM, and we can use it with autosuspend_timeout
    to idle things automatically. This allows us to get rid of the custom
    PM implementation.
    
    We enable clocks and init RNG in runtime_resume, and reset RNG and
    disable clocks in runtime_suspend. And then omap3_rom_rng_read()
    becomes very simple and we don't need the old functions for
    omap3_rom_rng_idle() and omap3_rom_rng_get_random(). We can now also
    get rid of pr_fmt as we're using dev_err instead.
    
    Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
    Cc: Adam Ford <aford173@gmail.com>
    Cc: Pali Rohár <pali.rohar@gmail.com>
    Cc: Sebastian Reichel <sre@kernel.org>
    Cc: Tero Kristo <t-kristo@ti.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    8d9d4bdc
omap3-rom-rng.c 4.11 KB