From 9d25d62bb6ff62694e5226b02d79075eab304402 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Jul 2018 14:29:48 +0100 Subject: igt/pm_rpm: Pass NULL to require no extra module options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: MichaƂ Winiarski --- tests/pm_rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index 51d8f366..1f2647be 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -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. */ -- cgit v1.2.3