Remove unneeded FDT checks from phydev and regdev

They are only ever built when FDT is enabled so there is no need to
check for it in the files.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2022-10-04 17:27:59 +01:00
parent a0a4f5cf17
commit 89a9a13c1a
2 changed files with 0 additions and 11 deletions

View file

@ -26,17 +26,13 @@
# $FreeBSD$
#
#ifdef FDT
#include <sys/types.h>
#include <dev/ofw/ofw_bus.h>
#endif
#include <machine/bus.h>
INTERFACE phydev;
#ifdef FDT
HEADER {
int phydev_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *);
}
@ -53,4 +49,3 @@ METHOD int map {
intptr_t *id;
} DEFAULT phydev_default_ofw_map;
#endif

View file

@ -26,17 +26,13 @@
# $FreeBSD$
#
#ifdef FDT
#include <sys/types.h>
#include <dev/ofw/ofw_bus.h>
#endif
#include <machine/bus.h>
INTERFACE regdev;
#ifdef FDT
HEADER {
int regdev_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *);
}
@ -52,5 +48,3 @@ METHOD int map {
pcell_t *cells;
intptr_t *id;
} DEFAULT regdev_default_ofw_map;
#endif