Date: Sun, 11 Aug 2019 20:47:02 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r350866 - stable/12/sys/dev/iicbus/twsi Message-ID: <201908112047.x7BKl2p8066112@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Sun Aug 11 20:47:01 2019 New Revision: 350866 URL: https://svnweb.freebsd.org/changeset/base/350866 Log: MFC r342102 (by gonzo): [twsi] Make extres/clk part conditional based on the EXT_RESOURCES option value This should fix kernel build for ARMADA38X and possibly some other ARM configs Modified: stable/12/sys/dev/iicbus/twsi/mv_twsi.c stable/12/sys/dev/iicbus/twsi/twsi.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/iicbus/twsi/mv_twsi.c ============================================================================== --- stable/12/sys/dev/iicbus/twsi/mv_twsi.c Sun Aug 11 20:34:24 2019 (r350865) +++ stable/12/sys/dev/iicbus/twsi/mv_twsi.c Sun Aug 11 20:47:01 2019 (r350866) @@ -61,7 +61,9 @@ __FBSDID("$FreeBSD$"); #include <dev/ofw/ofw_bus.h> #include <dev/ofw/ofw_bus_subr.h> +#ifdef EXT_RESOURCES #include <dev/extres/clk/clk.h> +#endif #include <arm/mv/mvreg.h> #include <arm/mv/mvvar.h> Modified: stable/12/sys/dev/iicbus/twsi/twsi.h ============================================================================== --- stable/12/sys/dev/iicbus/twsi/twsi.h Sun Aug 11 20:34:24 2019 (r350865) +++ stable/12/sys/dev/iicbus/twsi/twsi.h Sun Aug 11 20:47:01 2019 (r350866) @@ -34,7 +34,9 @@ #ifndef _TWSI_H_ #define _TWSI_H_ +#ifdef EXT_RESOURCES #include <dev/extres/clk/clk.h> +#endif struct twsi_baud_rate { uint32_t raw; @@ -50,8 +52,10 @@ struct twsi_softc { device_t iicbus; void * intrhand; bool have_intr; +#ifdef EXT_RESOURCES clk_t clk_core; clk_t clk_reg; +#endif struct iic_msg *msg; uint16_t sent_bytes;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908112047.x7BKl2p8066112>