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

Re: 2.4.0-test6 ppp trouble



Adam C Powell IV wrote:

> Greetings,
>
> I just built and installed a 2.4.0-test6 kernel, and with the attached
> patch it builds and boots just fine.

Oops, forgot the attached patch. :-)

-Adam P.

--- 2.4.0-test6/arch/ppc/kernel/pmac_time.c	Mon Jul 17 11:18:05 2000
+++ linux/arch/ppc/kernel/pmac_time.c	Wed Aug 23 20:14:37 2000
@@ -123,6 +123,7 @@
 	nowtime += RTC_OFFSET - sys_tz.tz_minuteswest * 60;
 
 	switch (sys_ctrler) {
+#ifdef CONFIG_ADB_CUDA
 	case SYS_CTRLER_CUDA:
 		if (cuda_request(&req, NULL, 6, CUDA_PACKET, CUDA_SET_TIME,
 				 nowtime >> 24, nowtime >> 16, nowtime >> 8, nowtime) < 0)
@@ -133,6 +134,8 @@
 			printk(KERN_ERR "pmac_set_rtc_time: got %d byte reply\n",
 			       req.reply_len);
 		return 1;
+#endif /* CONFIG_ADB_CUDA */
+#ifdef CONFIG_ADB_PMU
 	case SYS_CTRLER_PMU:
 		if (pmu_request(&req, NULL, 5, PMU_SET_RTC,
 				nowtime >> 24, nowtime >> 16, nowtime >> 8, nowtime) < 0)
@@ -142,6 +145,7 @@
 		if (req.reply_len != 5)
 			printk(KERN_ERR "pmac_set_rtc_time: got %d byte reply\n",
 			       req.reply_len);
+#endif /* CONFIG_ADB_PMU */
 		return 1;
 	default:
 		return 0;

Reply to: