git: 4cc76d90ea25 - main - iicbb: Always build ofw_bus_if.h

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Jan 2022 07:45:22 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=4cc76d90ea259df205fec14d6bed1bfb7b0ef23e

commit 4cc76d90ea259df205fec14d6bed1bfb7b0ef23e
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-01-02 07:32:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-01-02 07:41:28 +0000

    iicbb: Always build ofw_bus_if.h
    
    Always make ofw_bus_if.h. While it's only used when option FDT is in the
    kernel, it can always be generated. In theory we could omit it if option
    FDT isn't present, but none of the rest of sys/modules does that. That
    fine-grained control likely won't be reliable w/o a redesign of the
    kernel/module config system.
    
    Sponsored by:           Netflix
---
 sys/modules/i2c/iicbb/Makefile | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile
index 9b74a5da39d6..7da4c6acc3b3 100644
--- a/sys/modules/i2c/iicbb/Makefile
+++ b/sys/modules/i2c/iicbb/Makefile
@@ -1,14 +1,9 @@
 # $FreeBSD$
 
 .PATH:		${SRCTOP}/sys/dev/iicbus
-.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
-    ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "powerpc" || \
-    ${MACHINE_CPUARCH} == "riscv"
-ofw_bus_if=	ofw_bus_if.h
-.endif
 KMOD		= iicbb
 SRCS		= device_if.h bus_if.h iicbus_if.h \
-		  iicbb_if.h iicbb_if.c iicbb.c ${ofw_bus_if} opt_platform.h
+		  iicbb_if.h iicbb_if.c iicbb.c ofw_bus_if.h opt_platform.h
 
 EXPORT_SYMS=	YES