svn commit: r330125 - head/sys/dev/mmc/host

Emmanuel Vadot manu at FreeBSD.org
Wed Feb 28 19:05:26 UTC 2018


Author: manu
Date: Wed Feb 28 19:05:25 2018
New Revision: 330125
URL: https://svnweb.freebsd.org/changeset/base/330125

Log:
  dwmmc_rockchip: Add ifdefs on EXT_RESOURCES
  
  The old RK3188 kernel config uses dwmmc but isn't compiled with EXT_RESOURCES.
  Add ifdefs around code using EXT_RESOURCES code.
  
  Reported by:	rpokala

Modified:
  head/sys/dev/mmc/host/dwmmc_rockchip.c

Modified: head/sys/dev/mmc/host/dwmmc_rockchip.c
==============================================================================
--- head/sys/dev/mmc/host/dwmmc_rockchip.c	Wed Feb 28 18:34:22 2018	(r330124)
+++ head/sys/dev/mmc/host/dwmmc_rockchip.c	Wed Feb 28 19:05:25 2018	(r330125)
@@ -39,6 +39,10 @@ __FBSDID("$FreeBSD$");
 
 #include <dev/ofw/ofw_bus_subr.h>
 
+#ifdef EXT_RESOURCES
+#include <dev/extres/clk/clk.h>
+#endif
+
 #include <dev/mmc/host/dwmmc_var.h>
 
 enum RKTYPE {
@@ -88,11 +92,14 @@ rockchip_dwmmc_attach(device_t dev)
 
 	sc->pwren_inverted = 1;
 
+#ifdef EXT_RESOURCES
 	sc->update_ios = &dwmmc_rockchip_update_ios;
+#endif
 
 	return (dwmmc_attach(dev));
 }
 
+#ifdef EXT_RESOURCES
 static int
 dwmmc_rockchip_update_ios(struct dwmmc_softc *sc, struct mmc_ios *ios)
 {
@@ -119,6 +126,7 @@ dwmmc_rockchip_update_ios(struct dwmmc_softc *sc, stru
 	}
 	return (0);
 }
+#endif
 
 static device_method_t rockchip_dwmmc_methods[] = {
 	/* bus interface */


More information about the svn-src-head mailing list