crypto: bfin_crc - ignore duplicated registration of the same algorithm
authorSonic Zhang <sonic.zhang@analog.com>
Fri, 11 Apr 2014 09:30:25 +0000 (17:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2014 12:40:16 +0000 (20:40 +0800)
commit8d390395fa8cb32aeb3030398e441dd1a1ab4437
tree91a042ed8e74da3651efba3f4469726df52fb5d3
parent52e6e543f2d8c8320b6e9c53110bd1c5768d6b43
crypto: bfin_crc - ignore duplicated registration of the same algorithm

in case of multiple crc devices are probed.
Call platform_set_drvdata() before adding new CRC device into the list.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bfin_crc.c