[PATCH -mm] PM: fix 2.6.26-rc5-mm3 build error with CONFIG_PM_TEST_SUSPEND=y

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kernel/power/main.c: In function ‘test_suspend’:kernel/power/main.c:688: warning: passing argument 2 of ‘class_find_device’ from incompatible pointer typekernel/power/main.c:688: error: too few arguments to function ‘class_find_device’make[2]: *** [kernel/power/main.o] Error 1make[1]: *** [kernel/power] Error 2make: *** [kernel] Error 2
Signed-off-by: Andrea Righi <righi.andrea@xxxxxxxxx>--- kernel/power/main.c |    2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/power/main.c b/kernel/power/main.cindex e937cc8..2bf3d5b 100644--- a/kernel/power/main.c+++ b/kernel/power/main.c@@ -685,7 +685,7 @@ static int __init test_suspend(void) 	}  	/* RTCs have initialized by now too ... can we use one? */-	class_find_device(rtc_class, &pony, has_wakealarm);+	class_find_device(rtc_class, NULL, &pony, has_wakealarm); 	if (pony) 		rtc = rtc_class_open(pony); 	if (!rtc) {-- 1.5.4.3
_______________________________________________linux-pm mailing listlinux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux