]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82f9d6b904519436a24620183ea2b5376044bf05
treedd9d1fa809db7f89f1f662138b6e831b83dd28a9
parentae6c53763e6a80c4fd02a248934a48fc204661d1
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