Commit 9d25d62b authored by Chris Wilson's avatar Chris Wilson

igt/pm_rpm: Pass NULL to require no extra module options

We use options!=NULL to determine if we should require the module to be
reloaded and fail if we find it already loaded. In pm_rpm, we are only
ensuring the MSR module is loaded, and only want default options.

Fixes: 4dc2ce0e ("lib/kmod: Fail if the module is already loaded")
Signed-off-by: Chris Wilson's avatarChris Wilson <>
Reviewed-by: Michał Winiarski's avatarMichał Winiarski <>
parent 5175aff3
......@@ -223,7 +223,7 @@ int sync_fence_status(int fence)
static void modprobe(const char *driver)
igt_kmod_load(driver, "");
igt_kmod_load(driver, NULL);
static bool kernel_has_sw_sync(void)
......@@ -125,7 +125,7 @@ static int8_t *pm_data = NULL;
static int modprobe(const char *driver)
return igt_kmod_load(driver, "");
return igt_kmod_load(driver, NULL);
/* If the read fails, then the machine doesn't support PC8+ residencies. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment