forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/sound/soc/atmel/atmel-pcm.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * at91-pcm.h - ALSA PCM interface for the Atmel AT91 SoC.
34 *
....@@ -15,20 +16,6 @@
1516 * Author: Nicolas Pitre
1617 * Created: Nov 30, 2004
1718 * Copyright: (C) 2004 MontaVista Software, Inc.
18
- *
19
- * This program is free software; you can redistribute it and/or modify
20
- * it under the terms of the GNU General Public License as published by
21
- * the Free Software Foundation; either version 2 of the License, or
22
- * (at your option) any later version.
23
- *
24
- * This program is distributed in the hope that it will be useful,
25
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
- * GNU General Public License for more details.
28
- *
29
- * You should have received a copy of the GNU General Public License
30
- * along with this program; if not, write to the Free Software
31
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3219 */
3320
3421 #ifndef _ATMEL_PCM_H
....@@ -85,27 +72,19 @@
8572
8673 #if IS_ENABLED(CONFIG_SND_ATMEL_SOC_PDC)
8774 int atmel_pcm_pdc_platform_register(struct device *dev);
88
-void atmel_pcm_pdc_platform_unregister(struct device *dev);
8975 #else
9076 static inline int atmel_pcm_pdc_platform_register(struct device *dev)
9177 {
9278 return 0;
9379 }
94
-static inline void atmel_pcm_pdc_platform_unregister(struct device *dev)
95
-{
96
-}
9780 #endif
9881
9982 #if IS_ENABLED(CONFIG_SND_ATMEL_SOC_DMA)
10083 int atmel_pcm_dma_platform_register(struct device *dev);
101
-void atmel_pcm_dma_platform_unregister(struct device *dev);
10284 #else
10385 static inline int atmel_pcm_dma_platform_register(struct device *dev)
10486 {
10587 return 0;
106
-}
107
-static inline void atmel_pcm_dma_platform_unregister(struct device *dev)
108
-{
10988 }
11089 #endif
11190