PERFORCE change 171866 for review
Rafal Jaworowski
raj at FreeBSD.org
Thu Dec 17 13:07:07 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=171866
Change 171866 by raj at raj_fdt on 2009/12/17 13:06:48
Provide in-place property modification routine.
This is required for doing run-time fixups in the kernel.
Affected files ...
.. //depot/projects/fdt/sys/dev/ofw/ofw_fdt.c#3 edit
Differences ...
==== //depot/projects/fdt/sys/dev/ofw/ofw_fdt.c#3 (text+ko) ====
@@ -360,8 +360,13 @@
ofw_fdt_setprop(ofw_t ofw, phandle_t package, const char *propname,
const void *buf, size_t len)
{
+ int offset;
- return (-1);
+ offset = fdt_phandle_offset(package);
+ if (offset < 0)
+ return (-1);
+
+ return (fdt_setprop_inplace(fdtp, offset, propname, buf, len));
}
/* Convert a device specifier to a fully qualified pathname. */
More information about the p4-projects
mailing list