Skip to content

Commit 3c7e0cc

Browse files
mwallelynxeye-dev
authored andcommitted
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>
1 parent fa55b7d commit 3c7e0cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/etnaviv/etnaviv_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ static int __init etnaviv_init(void)
653653
if (!of_device_is_available(np))
654654
continue;
655655

656-
pdev = platform_device_alloc("etnaviv", -1);
656+
pdev = platform_device_alloc("etnaviv", PLATFORM_DEVID_NONE);
657657
if (!pdev) {
658658
ret = -ENOMEM;
659659
of_node_put(np);

0 commit comments

Comments
 (0)