git: a5339ba3ff14 - main - dwc: Make ext_resources non-optional
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Feb 2022 16:29:43 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=a5339ba3ff147618e21f45a11f062ccb9fadafb2
commit a5339ba3ff147618e21f45a11f062ccb9fadafb2
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-01-11 09:34:36 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-21 16:28:37 +0000
dwc: Make ext_resources non-optional
EXT_RESOURCES have been introduced in 12-CURRENT and all supported
releases have it enabled in their kernel config.
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33820
---
sys/dev/dwc/if_dwc.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c
index d1a536639304..703c210a8f87 100644
--- a/sys/dev/dwc/if_dwc.c
+++ b/sys/dev/dwc/if_dwc.c
@@ -71,10 +71,8 @@ __FBSDID("$FreeBSD$");
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/mii/mii_fdt.h>
-#ifdef EXT_RESOURCES
#include <dev/extres/clk/clk.h>
#include <dev/extres/hwreset/hwreset.h>
-#endif
#include "if_dwc_if.h"
#include "gpio_if.h"
@@ -1497,7 +1495,6 @@ dwc_reset(device_t dev)
return (0);
}
-#ifdef EXT_RESOURCES
static int
dwc_clock_init(device_t dev)
{
@@ -1534,7 +1531,6 @@ dwc_clock_init(device_t dev)
return (0);
}
-#endif
static int
dwc_probe(device_t dev)
@@ -1601,10 +1597,8 @@ dwc_attach(device_t dev)
if (IF_DWC_INIT(dev) != 0)
return (ENXIO);
-#ifdef EXT_RESOURCES
if (dwc_clock_init(dev) != 0)
return (ENXIO);
-#endif
if (bus_alloc_resources(dev, dwc_spec, sc->res)) {
device_printf(dev, "could not allocate resources\n");