Subject: Re: generic TODR changes for shark and ofppc
To: Garrett D'Amore <>
From: =?ISO-8859-1?Q?Jorge_Acereda_Maci=E1?= <>
List: port-arm
Date: 09/13/2006 00:04:39
Garrett D'Amore wrote:

>>Attached, find a diff that significantly changes the real-time-clock
>>support for shark and ofppc.

Now that I look at it, the ofrtc_match() in -current has a bug:

	if ((l = OF_getprop(oba->oba_phandle, "device_type", type,
	    sizeof type - 1)) < 0 ||
	    l >= sizeof type)
		return 0;

	return !strcmp(type, "rtc");

That should be strncmp(type, "rtc", 3)