treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / sound / soc / ti / edma-pcm.h
blob941d18527d91015baa4753ce676100fc10856014
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * edma-pcm.h - eDMA PCM driver using dmaengine for AM3xxx, AM4xxx
5 * Copyright (C) 2014 Texas Instruments, Inc.
7 * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
9 * Based on: sound/soc/tegra/tegra_pcm.h
12 #ifndef __EDMA_PCM_H__
13 #define __EDMA_PCM_H__
15 #if IS_ENABLED(CONFIG_SND_SOC_TI_EDMA_PCM)
16 int edma_pcm_platform_register(struct device *dev);
17 #else
18 static inline int edma_pcm_platform_register(struct device *dev)
20 return 0;
22 #endif /* CONFIG_SND_SOC_TI_EDMA_PCM */
24 #endif /* __EDMA_PCM_H__ */