Commit c007e720 authored by Gaurav Jain's avatar Gaurav Jain Committed by Herbert Xu

crypto: caam/jr - add .shutdown hook

add .shutdown hook in caam_jr driver to support kexec boot
Signed-off-by: default avatarGaurav Jain <gaurav.jain@nxp.com>
Tested-by: default avatarVijay Balakrishna <vijayb@linux.microsoft.com>
Reviewed-by: default avatarPankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ed490503
......@@ -198,6 +198,11 @@ static int caam_jr_remove(struct platform_device *pdev)
return ret;
}
static void caam_jr_platform_shutdown(struct platform_device *pdev)
{
caam_jr_remove(pdev);
}
/* Main per-ring interrupt handler */
static irqreturn_t caam_jr_interrupt(int irq, void *st_dev)
{
......@@ -653,6 +658,7 @@ static struct platform_driver caam_jr_driver = {
},
.probe = caam_jr_probe,
.remove = caam_jr_remove,
.shutdown = caam_jr_platform_shutdown,
};
static int __init jr_driver_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment