]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.116/asoc-pcm512x-add-missing-module_description-author-license.patch
Linux 4.19.45
[thirdparty/kernel/stable-queue.git] / releases / 4.4.116 / asoc-pcm512x-add-missing-module_description-author-license.patch
CommitLineData
670797fc
GKH
1From 0cab20cec0b663b7be8e2be5998d5a4113647f86 Mon Sep 17 00:00:00 2001
2From: Jesse Chan <jc@linux.com>
3Date: Sun, 19 Nov 2017 23:45:49 -0800
4Subject: ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
5
6From: Jesse Chan <jc@linux.com>
7
8commit 0cab20cec0b663b7be8e2be5998d5a4113647f86 upstream.
9
10This change resolves a new compile-time warning
11when built as a loadable module:
12
13WARNING: modpost: missing MODULE_LICENSE() in sound/soc/codecs/snd-soc-pcm512x-spi.o
14see include/linux/module.h for more information
15
16This adds the license as "GPL v2", which matches the header of the file.
17
18MODULE_DESCRIPTION and MODULE_AUTHOR are also added.
19
20Signed-off-by: Jesse Chan <jc@linux.com>
21Signed-off-by: Mark Brown <broonie@kernel.org>
22Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24---
25 sound/soc/codecs/pcm512x-spi.c | 4 ++++
26 1 file changed, 4 insertions(+)
27
28--- a/sound/soc/codecs/pcm512x-spi.c
29+++ b/sound/soc/codecs/pcm512x-spi.c
30@@ -70,3 +70,7 @@ static struct spi_driver pcm512x_spi_dri
31 };
32
33 module_spi_driver(pcm512x_spi_driver);
34+
35+MODULE_DESCRIPTION("ASoC PCM512x codec driver - SPI");
36+MODULE_AUTHOR("Mark Brown <broonie@kernel.org>");
37+MODULE_LICENSE("GPL v2");