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 <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Signed-off-by: Lucas Stach <[email protected]>
1 parent fa55b7d commit 3c7e0cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)