diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2021-02-10 00:13:04 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2021-02-10 16:10:59 +0300 |
commit | 5dd331d4d8caa62624b7b025332ce64feea4192b (patch) | |
tree | ada88364b545c274b223b95ae91f3858c2abd989 /drivers/gpu/drm/aspeed | |
parent | f66aaab828e726986d9d5daa2b637b2712464a15 (diff) | |
download | linux-5dd331d4d8caa62624b7b025332ce64feea4192b.tar.xz |
drm: use getter/setter functions
Use getter and setter functions, for platform_device structures and a
mipi_dsi_device structure.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209211304.1261740-1-Julia.Lawall@inria.fr
Diffstat (limited to 'drivers/gpu/drm/aspeed')
-rw-r--r-- | drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index 6b3a01ba3e0d..b53fee6f1c17 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c @@ -319,7 +319,7 @@ static int aspeed_gfx_probe(struct platform_device *pdev) if (ret) return ret; - dev_set_drvdata(&pdev->dev, priv); + platform_set_drvdata(pdev, priv); ret = sysfs_create_group(&pdev->dev.kobj, &aspeed_sysfs_attr_group); if (ret) |