mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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>
This commit is contained in:
parent
fa55b7dcdc
commit
3c7e0ccc94
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user