Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwrng: drivers - Remove redundant pm_runtime_mark_last_busy() calls

pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Sakari Ailus and committed by
Herbert Xu
99d9edf6 75e2d4b1

-9
-1
drivers/char/hw_random/atmel-rng.c
··· 80 80 ret = 4; 81 81 82 82 out: 83 - pm_runtime_mark_last_busy(trng->dev); 84 83 pm_runtime_put_sync_autosuspend(trng->dev); 85 84 return ret; 86 85 }
-1
drivers/char/hw_random/cctrng.c
··· 98 98 { 99 99 int rc = 0; 100 100 101 - pm_runtime_mark_last_busy(dev); 102 101 rc = pm_runtime_put_autosuspend(dev); 103 102 if (rc) 104 103 dev_err(dev, "pm_runtime_put_autosuspend returned %x\n", rc);
-1
drivers/char/hw_random/mtk-rng.c
··· 98 98 max -= sizeof(u32); 99 99 } 100 100 101 - pm_runtime_mark_last_busy(priv->dev); 102 101 pm_runtime_put_sync_autosuspend(priv->dev); 103 102 104 103 return retval || !wait ? retval : -EIO;
-1
drivers/char/hw_random/npcm-rng.c
··· 80 80 max--; 81 81 } 82 82 83 - pm_runtime_mark_last_busy(priv->dev); 84 83 pm_runtime_put_sync_autosuspend(priv->dev); 85 84 86 85 return retval || !wait ? retval : -EIO;
-1
drivers/char/hw_random/omap3-rom-rng.c
··· 56 56 else 57 57 r = 4; 58 58 59 - pm_runtime_mark_last_busy(ddata->dev); 60 59 pm_runtime_put_autosuspend(ddata->dev); 61 60 62 61 return r;
-3
drivers/char/hw_random/rockchip-rng.c
··· 223 223 /* Read random data stored in the registers */ 224 224 memcpy_fromio(buf, rk_rng->base + TRNG_RNG_DOUT, to_read); 225 225 out: 226 - pm_runtime_mark_last_busy(rk_rng->dev); 227 226 pm_runtime_put_sync_autosuspend(rk_rng->dev); 228 227 229 228 return (ret < 0) ? ret : to_read; ··· 262 263 memcpy_fromio(buf, rk_rng->base + RKRNG_TRNG_DATA0, to_read); 263 264 264 265 out: 265 - pm_runtime_mark_last_busy(rk_rng->dev); 266 266 pm_runtime_put_sync_autosuspend(rk_rng->dev); 267 267 268 268 return (ret < 0) ? ret : to_read; ··· 353 355 /* close the TRNG */ 354 356 rk_rng_writel(rk_rng, TRNG_V1_CTRL_NOP, TRNG_V1_CTRL); 355 357 356 - pm_runtime_mark_last_busy(rk_rng->dev); 357 358 pm_runtime_put_sync_autosuspend(rk_rng->dev); 358 359 359 360 return (ret < 0) ? ret : to_read;
-1
drivers/char/hw_random/stm32-rng.c
··· 255 255 } 256 256 257 257 exit_rpm: 258 - pm_runtime_mark_last_busy(priv->dev); 259 258 pm_runtime_put_sync_autosuspend(priv->dev); 260 259 261 260 return retval || !wait ? retval : -EIO;