svn commit: r349472 - head/sys/dev/gpio

Li-Wen Hsu lwhsu at FreeBSD.org
Thu Jun 27 22:18:22 UTC 2019


Author: lwhsu
Date: Thu Jun 27 22:18:21 2019
New Revision: 349472
URL: https://svnweb.freebsd.org/changeset/base/349472

Log:
  Follow r349460 to complete removing "flags" in struct gpiobus_ivar
  
  MFC with:	r349460
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/gpio/ofw_gpiobus.c

Modified: head/sys/dev/gpio/ofw_gpiobus.c
==============================================================================
--- head/sys/dev/gpio/ofw_gpiobus.c	Thu Jun 27 22:06:41 2019	(r349471)
+++ head/sys/dev/gpio/ofw_gpiobus.c	Thu Jun 27 22:18:21 2019	(r349472)
@@ -321,10 +321,8 @@ ofw_gpiobus_setup_devinfo(device_t bus, device_t child
 		ofw_gpiobus_destroy_devinfo(bus, dinfo);
 		return (NULL);
 	}
-	for (i = 0; i < devi->npins; i++) {
-		devi->flags[i] = pins[i].flags;
+	for (i = 0; i < devi->npins; i++)
 		devi->pins[i] = pins[i].pin;
-	}
 	free(pins, M_DEVBUF);
 	/* Parse the interrupt resources. */
 	if (ofw_bus_intr_to_rl(bus, node, &dinfo->opd_dinfo.rl, NULL) != 0) {


More information about the svn-src-head mailing list