mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
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:
parent
a0a4f5cf17
commit
89a9a13c1a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue