mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue