crypto: picoxcell - Use dev_get_drvdata()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 23 Apr 2019 07:49:57 +0000 (15:49 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:29 +0000 (14:03 +0800)
Using dev_get_drvdata directly.

Cc: Jamie Iles <jamie@jamieiles.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/picoxcell_crypto.c

index 975582b82a239768def23f07c7ca8d5d717bbdfb..05b89e70390313c06df6a3ed8fe5a5574441c997 100644 (file)
@@ -1215,7 +1215,7 @@ static const struct dev_pm_ops spacc_pm_ops = {
 
 static inline struct spacc_engine *spacc_dev_to_engine(struct device *dev)
 {
-       return dev ? platform_get_drvdata(to_platform_device(dev)) : NULL;
+       return dev ? dev_get_drvdata(dev) : NULL;
 }
 
 static ssize_t spacc_stat_irq_thresh_show(struct device *dev,