summaryrefslogtreecommitdiff
path: root/lib/sw_sync.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-07-12 14:29:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-07-12 14:44:01 +0100
commit9d25d62bb6ff62694e5226b02d79075eab304402 (patch)
tree0266a51fcf23172569434523ffffe846b759b79d /lib/sw_sync.c
parent5175aff31e00e17786ebb97aaaf25ddd38b5e72e (diff)
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 <chris@chris-wilson.co.uk> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Diffstat (limited to 'lib/sw_sync.c')
-rw-r--r--lib/sw_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sw_sync.c b/lib/sw_sync.c
index 619049b3..f2086033 100644
--- a/lib/sw_sync.c
+++ b/lib/sw_sync.c
@@ -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)