diff options
-rw-r--r-- | drivers/crypto/s5p-sss.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index f214a8755827..e10284744fd2 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c | |||
@@ -224,6 +224,7 @@ static inline struct samsung_aes_variant *find_s5p_sss_version | |||
224 | { | 224 | { |
225 | if (IS_ENABLED(CONFIG_OF) && (pdev->dev.of_node)) { | 225 | if (IS_ENABLED(CONFIG_OF) && (pdev->dev.of_node)) { |
226 | const struct of_device_id *match; | 226 | const struct of_device_id *match; |
227 | |||
227 | match = of_match_node(s5p_sss_dt_match, | 228 | match = of_match_node(s5p_sss_dt_match, |
228 | pdev->dev.of_node); | 229 | pdev->dev.of_node); |
229 | return (struct samsung_aes_variant *)match->data; | 230 | return (struct samsung_aes_variant *)match->data; |
@@ -397,7 +398,6 @@ static void s5p_set_aes(struct s5p_aes_dev *dev, | |||
397 | static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode) | 398 | static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode) |
398 | { | 399 | { |
399 | struct ablkcipher_request *req = dev->req; | 400 | struct ablkcipher_request *req = dev->req; |
400 | |||
401 | uint32_t aes_control; | 401 | uint32_t aes_control; |
402 | int err; | 402 | int err; |
403 | unsigned long flags; | 403 | unsigned long flags; |
@@ -518,7 +518,7 @@ static int s5p_aes_crypt(struct ablkcipher_request *req, unsigned long mode) | |||
518 | struct s5p_aes_dev *dev = ctx->dev; | 518 | struct s5p_aes_dev *dev = ctx->dev; |
519 | 519 | ||
520 | if (!IS_ALIGNED(req->nbytes, AES_BLOCK_SIZE)) { | 520 | if (!IS_ALIGNED(req->nbytes, AES_BLOCK_SIZE)) { |
521 | pr_err("request size is not exact amount of AES blocks\n"); | 521 | dev_err(dev->dev, "request size is not exact amount of AES blocks\n"); |
522 | return -EINVAL; | 522 | return -EINVAL; |
523 | } | 523 | } |
524 | 524 | ||
@@ -566,7 +566,7 @@ static int s5p_aes_cbc_decrypt(struct ablkcipher_request *req) | |||
566 | 566 | ||
567 | static int s5p_aes_cra_init(struct crypto_tfm *tfm) | 567 | static int s5p_aes_cra_init(struct crypto_tfm *tfm) |
568 | { | 568 | { |
569 | struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm); | 569 | struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm); |
570 | 570 | ||
571 | ctx->dev = s5p_dev; | 571 | ctx->dev = s5p_dev; |
572 | tfm->crt_ablkcipher.reqsize = sizeof(struct s5p_aes_reqctx); | 572 | tfm->crt_ablkcipher.reqsize = sizeof(struct s5p_aes_reqctx); |
@@ -701,7 +701,7 @@ static int s5p_aes_probe(struct platform_device *pdev) | |||
701 | goto err_algs; | 701 | goto err_algs; |
702 | } | 702 | } |
703 | 703 | ||
704 | pr_info("s5p-sss driver registered\n"); | 704 | dev_info(dev, "s5p-sss driver registered\n"); |
705 | 705 | ||
706 | return 0; | 706 | return 0; |
707 | 707 | ||