util_open() takes a device parameter, followed by a module parameter.
The existing tests used the drmOpen() function, which uses a different
ordering of the parameters, and the old ordering was accidentally kept
during the conversion.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
if (!args)
encoders = connectors = crtcs = planes = framebuffers = 1;
- dev.fd = util_open(module, device);
+ dev.fd = util_open(device, module);
if (dev.fd < 0)
return -1;
args = argc - optind;
- fd = util_open(module, device);
+ fd = util_open(device, module);
if (fd < 0)
return 1;
}
}
- fd = util_open(module, device);
+ fd = util_open(device, module);
if (fd < 0)
return 1;