mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:50:58 +07:00
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>
This commit is contained in:
parent
38cf5533d7
commit
0e4c610114
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user