diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-04-23 15:49:57 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-03 14:03:29 +0800 |
commit | 0e4c61011417b68dd1d81f1820d11cd127dee9ac (patch) | |
tree | c79d5f6e5d2e3b64df7329176252e92f83454210 /drivers/crypto/picoxcell_crypto.c | |
parent | 38cf5533d7a876f75088bacc1277046f30005f28 (diff) | |
download | linux-stable-0e4c61011417b68dd1d81f1820d11cd127dee9ac.tar.gz linux-stable-0e4c61011417b68dd1d81f1820d11cd127dee9ac.tar.bz2 linux-stable-0e4c61011417b68dd1d81f1820d11cd127dee9ac.zip |
crypto: picoxcell - Use dev_get_drvdata()
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>
Diffstat (limited to 'drivers/crypto/picoxcell_crypto.c')
-rw-r--r-- | drivers/crypto/picoxcell_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c index 975582b82a23..05b89e703903 100644 --- a/drivers/crypto/picoxcell_crypto.c +++ b/drivers/crypto/picoxcell_crypto.c @@ -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, |