Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jan 2018 20:28:17 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327681 - head/sys/modules/gpio/gpiobus
Message-ID:  <201801072028.w07KSHpF044608@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sun Jan  7 20:28:17 2018
New Revision: 327681
URL: https://svnweb.freebsd.org/changeset/base/327681

Log:
  Add missing file to gpiobus module
  
  ofw_gpiobus.c is needed when FDT is used.
  
  MFC after:	2 weeks

Modified:
  head/sys/modules/gpio/gpiobus/Makefile

Modified: head/sys/modules/gpio/gpiobus/Makefile
==============================================================================
--- head/sys/modules/gpio/gpiobus/Makefile	Sun Jan  7 18:33:19 2018	(r327680)
+++ head/sys/modules/gpio/gpiobus/Makefile	Sun Jan  7 20:28:17 2018	(r327681)
@@ -36,6 +36,10 @@ SRCS=	gpiobus.c gpioc.c
 SRCS+=	gpio_if.c gpio_if.h gpiobus_if.c gpiobus_if.h ofw_bus_if.h
 SRCS+=	device_if.h bus_if.h opt_platform.h
 
+.if !empty(OPT_FDT)
+SRCS+=	ofw_gpiobus.c
+.endif
+
 CFLAGS+=  -I. -I${SRCTOP}/sys/dev/gpio/
 
 .include <bsd.kmod.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801072028.w07KSHpF044608>