mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
remoteproc: omap_remoteproc: simplify getting .driver_data
We should get 'driver_data' from 'struct device' directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20210920090522.23784-10-wsa+renesas@sang-engineering.com
This commit is contained in:
parent
9db9c738ac
commit
c34bfafd7c
@ -901,8 +901,7 @@ out:
|
|||||||
|
|
||||||
static int __maybe_unused omap_rproc_suspend(struct device *dev)
|
static int __maybe_unused omap_rproc_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct platform_device *pdev = to_platform_device(dev);
|
struct rproc *rproc = dev_get_drvdata(dev);
|
||||||
struct rproc *rproc = platform_get_drvdata(pdev);
|
|
||||||
struct omap_rproc *oproc = rproc->priv;
|
struct omap_rproc *oproc = rproc->priv;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
@ -938,8 +937,7 @@ out:
|
|||||||
|
|
||||||
static int __maybe_unused omap_rproc_resume(struct device *dev)
|
static int __maybe_unused omap_rproc_resume(struct device *dev)
|
||||||
{
|
{
|
||||||
struct platform_device *pdev = to_platform_device(dev);
|
struct rproc *rproc = dev_get_drvdata(dev);
|
||||||
struct rproc *rproc = platform_get_drvdata(pdev);
|
|
||||||
struct omap_rproc *oproc = rproc->priv;
|
struct omap_rproc *oproc = rproc->priv;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user