Source-Changes-HG archive

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

[src/thorpej-i2c-spi-conf]: src/sys/dev/ofw Ooops, no, revert that.



details:   https://anonhg.NetBSD.org/src/rev/0d90a7b3e449
branches:  thorpej-i2c-spi-conf
changeset: 378773:0d90a7b3e449
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 14 02:51:43 2021 +0000

description:
Ooops, no, revert that.

diffstat:

 sys/dev/ofw/ofw_i2c_subr.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 872d3f52858e -r 0d90a7b3e449 sys/dev/ofw/ofw_i2c_subr.c
--- a/sys/dev/ofw/ofw_i2c_subr.c        Fri May 14 02:48:43 2021 +0000
+++ b/sys/dev/ofw/ofw_i2c_subr.c        Fri May 14 02:51:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_i2c_subr.c,v 1.1.6.5 2021/05/14 02:48:43 thorpej Exp $     */
+/*     $NetBSD: ofw_i2c_subr.c,v 1.1.6.6 2021/05/14 02:51:43 thorpej Exp $     */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr.c,v 1.1.6.5 2021/05/14 02:48:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr.c,v 1.1.6.6 2021/05/14 02:51:43 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -176,9 +176,6 @@ of_i2c_enumerate_devices(device_t dev, d
                }
 
                clist_size = OF_getproplen(node, "compatible");
-               if (clist_size <= 0) {
-                       continue;
-               }
                clist = kmem_tmpbuf_alloc(clist_size,
                    compat_buf, sizeof(compat_buf), KM_SLEEP);
                if (OF_getprop(node, "compatible", clist, clist_size) <



Home | Main Index | Thread Index | Old Index