git: 57766bd637b3 - stable/13 - dwc: Make ext_resources non-optional

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 16 May 2022 12:09:37 UTC
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=57766bd637b3913618390db717beca4445b1567b

commit 57766bd637b3913618390db717beca4445b1567b
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-01-11 09:34:36 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-05-16 11:45:34 +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
    
    (cherry picked from commit a5339ba3ff147618e21f45a11f062ccb9fadafb2)
---
 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 d2e21d22a776..2fc78cd47c77 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"
@@ -1499,7 +1497,6 @@ dwc_reset(device_t dev)
 	return (0);
 }
 
-#ifdef EXT_RESOURCES
 static int
 dwc_clock_init(device_t dev)
 {
@@ -1536,7 +1533,6 @@ dwc_clock_init(device_t dev)
 
 	return (0);
 }
-#endif
 
 static int
 dwc_probe(device_t dev)
@@ -1606,10 +1602,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");