crypto: caam - Fix job ring discovery in controller driver
authorNitesh Lal <NiteshNarayanLal@freescale.com>
Sun, 9 Feb 2014 01:59:13 +0000 (09:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 9 Feb 2014 01:59:13 +0000 (09:59 +0800)
commit0a63b09dd6e321d4488347d6283685d08ee4bb7f
treedd9d1fa809db7f89f1f662138b6e831b83dd28a9
parent2021abaa00da64a4b98948c93bf31a55386cd2d0
crypto: caam - Fix job ring discovery in controller driver

The SEC Controller driver creates platform devices for it's child job ring nodes.
Currently the driver uses for_each_compatible routine which traverses
the whole device tree to create the job rings for the platform device.
The patch changes this to search for the compatible property of job ring
only in the child nodes i.e., the job rings are created as per the number
of children associated with the crypto node.

Signed-off-by: Nitesh Lal <NiteshNarayanLal@freescale.com>
Reviewed-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
This page took 0.029767 seconds and 5 git commands to generate.