crypto: caam - Pass error type into the functions
authorMarek Vasut <marex@denx.de>
Thu, 24 Apr 2014 18:05:15 +0000 (20:05 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 May 2014 13:58:08 +0000 (21:58 +0800)
commit8a4758268292eb036a63f49746fbfe3fcdc0c51d
tree04d4fa29337c6e5eaffc65fec648e684234130c0
parent867e1ee395d845f49ae280c3d8f5271b214fa7e4
crypto: caam - Pass error type into the functions

Pass the error type string into the functions, so they can handle
the printing of the string. This is now still using the very unsafe
sprintf(), but we will fix that.

While at this, pass the device pointer too, so we can dev_err()
functions readily when we start fixing this proper.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/error.c