Re: [PATCH/RFC 2/4] mmc: renesas_sdhi, tmio: make dma more modular

Wolfram Sang
2016-06-22T14:13:19Z

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

> +#if IS_ENABLED(CONFIG_MMC_SDHI_DMA)
> +int tmio_mmc_init_dma(void);
> +#else
> +static int tmio_mmc_init_dma(void)
> +{
> + return -EINVAL;
> +}
> +#endif

Can't we make this another tmio_mmc_dma_ops to save the ifdeffery?