diff options
author | Michael Walle <michael@walle.cc> | 2021-09-07 19:49:43 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2021-12-01 15:27:12 +0300 |
commit | 3c7e0ccc946c01e33ee5fb5a7991f0f396348e5a (patch) | |
tree | e4fa5606a7d38fa4344c58077ad097684bb0d7e5 /drivers/gpu/drm/etnaviv/etnaviv_drv.c | |
parent | fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff) | |
download | linux-3c7e0ccc946c01e33ee5fb5a7991f0f396348e5a.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_drv.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 |
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); |