Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2018 19:05:25 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330125 - head/sys/dev/mmc/host
Message-ID:  <201802281905.w1SJ5PTY089493@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802281905.w1SJ5PTY089493>