Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH] crypto: picoxcell - replace strict_strtoul() with kstrtoul()
@ 2013-06-01  7:05 Jingoo Han
  2013-06-05  8:54 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-06-01  7:05 UTC (permalink / raw)
  To: 'Herbert Xu'
  Cc: linux-crypto, 'David S. Miller', 'Jingoo Han',
	'Jamie Iles'

The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/crypto/picoxcell_crypto.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c
index ac30724..888f7f4 100644
--- a/drivers/crypto/picoxcell_crypto.c
+++ b/drivers/crypto/picoxcell_crypto.c
@@ -1298,7 +1298,7 @@ static ssize_t spacc_stat_irq_thresh_store(struct device *dev,
 	struct spacc_engine *engine = spacc_dev_to_engine(dev);
 	unsigned long thresh;
 
-	if (strict_strtoul(buf, 0, &thresh))
+	if (kstrtoul(buf, 0, &thresh))
 		return -EINVAL;
 
 	thresh = clamp(thresh, 1UL, engine->fifo_sz - 1);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-05  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-01  7:05 [PATCH] crypto: picoxcell - replace strict_strtoul() with kstrtoul() Jingoo Han
2013-06-05  8:54 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox