aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2021-09-07 18:49:43 +0200
committerLucas Stach <l.stach@pengutronix.de>2021-12-01 13:27:12 +0100
commit3c7e0ccc946c01e33ee5fb5a7991f0f396348e5a (patch)
treee4fa5606a7d38fa4344c58077ad097684bb0d7e5
parentLinux 5.16-rc1 (diff)
downloadlinux-dev-3c7e0ccc946c01e33ee5fb5a7991f0f396348e5a.tar.xz
linux-dev-3c7e0ccc946c01e33ee5fb5a7991f0f396348e5a.zip
drm/etnaviv: use PLATFORM_DEVID_NONE
There is already a macro for the magic value. Use it. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
-rw-r--r--drivers/gpu/drm/etnaviv/etnaviv_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 7dcc6392792d..2509b3e85709 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -653,7 +653,7 @@ static int __init etnaviv_init(void)
if (!of_device_is_available(np))
continue;
- pdev = platform_device_alloc("etnaviv", -1);
+ pdev = platform_device_alloc("etnaviv", PLATFORM_DEVID_NONE);
if (!pdev) {
ret = -ENOMEM;
of_node_put(np);