diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2020-11-16 11:53:36 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2020-11-16 11:53:36 +0000 |
commit | f4e5e045e2ccc50c6abb6e06fece66a3152a1e5e (patch) | |
tree | f9a518dca699fcfa68d07ac4f07ce5277a5ad7cc /sys/dev/mmc | |
parent | d34f599cd2c84057a01daafcf2b1e51128bc87e9 (diff) | |
download | src-f4e5e045e2ccc50c6abb6e06fece66a3152a1e5e.tar.gz src-f4e5e045e2ccc50c6abb6e06fece66a3152a1e5e.zip |
dwmmc: dwmmc_switch_vccq is only used in MMCCAM kernel
Silence the build for non MMCCAM kernel
Notes
Notes:
svn path=/head/; revision=367721
Diffstat (limited to 'sys/dev/mmc')
-rw-r--r-- | sys/dev/mmc/host/dwmmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c index 049ab4db7645..11521257ee0a 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -143,8 +143,8 @@ static int dma_stop(struct dwmmc_softc *); static void pio_read(struct dwmmc_softc *, struct mmc_command *); static void pio_write(struct dwmmc_softc *, struct mmc_command *); static void dwmmc_handle_card_present(struct dwmmc_softc *sc, bool is_present); -static int dwmmc_switch_vccq(device_t, device_t); #ifdef MMCCAM +static int dwmmc_switch_vccq(device_t, device_t); static void dwmmc_cam_action(struct cam_sim *, union ccb *); static void dwmmc_cam_poll(struct cam_sim *); static int dwmmc_cam_settran_settings(struct dwmmc_softc *, union ccb *); @@ -1418,6 +1418,7 @@ dwmmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value) return (0); } +#ifdef MMCCAM /* Note: this function likely belongs to the specific driver impl */ static int dwmmc_switch_vccq(device_t dev, device_t child) @@ -1426,7 +1427,6 @@ dwmmc_switch_vccq(device_t dev, device_t child) return EINVAL; } -#ifdef MMCCAM static void dwmmc_cam_handle_mmcio(struct cam_sim *sim, union ccb *ccb) { |