crypto: sa2ul - Remove child devices in remove
authorSuman Anna <s-anna@ti.com>
Fri, 14 May 2021 16:12:46 +0000 (11:12 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 May 2021 00:52:40 +0000 (08:52 +0800)
commitc858401cb4a884b840fa3214b8999e8feba3a59b
treeda42be2a6099a5c568a66b0b8c49726ffcb5be16
parentdaeec7388eb2c5dbff17630b76c22786ffa1e55a
crypto: sa2ul - Remove child devices in remove

The sa_ul_probe creates child devices using of_platform_populate(),
but these are not cleaned up in driver remove. Clean these up
by removing the child devices using of_platform_depopulate().

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Tero Kristo <kristo@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c