05128020f7568e7baccf6ffcc86ea1c6c8f11c94
[openwrt/staging/linusw.git] /
1 From b06f01038711efc5182267cfc68e358a89ee2502 Mon Sep 17 00:00:00 2001
2 From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
3 Date: Wed, 17 Oct 2018 21:01:55 +0200
4 Subject: [PATCH] staging: bcm2835-audio: rename platform_driver
5 structure
6
7 commit 82cdc0c6b6faf877e2aecb957cffa9cb578cc572 upstream.
8
9 It was called bcm2835_alsa0_driver, that "0" didn't mean much.
10
11 Suggested-by: Takashi Iwai <tiwai@suse.de>
12 Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
13 Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 ---
16 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 6 +++---
17 1 file changed, 3 insertions(+), 3 deletions(-)
18
19 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
20 +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
21 @@ -343,7 +343,7 @@ static const struct of_device_id snd_bcm
22 };
23 MODULE_DEVICE_TABLE(of, snd_bcm2835_of_match_table);
24
25 -static struct platform_driver bcm2835_alsa0_driver = {
26 +static struct platform_driver bcm2835_alsa_driver = {
27 .probe = snd_bcm2835_alsa_probe,
28 #ifdef CONFIG_PM
29 .suspend = snd_bcm2835_alsa_suspend,
30 @@ -359,7 +359,7 @@ static int bcm2835_alsa_device_init(void
31 {
32 int retval;
33
34 - retval = platform_driver_register(&bcm2835_alsa0_driver);
35 + retval = platform_driver_register(&bcm2835_alsa_driver);
36 if (retval)
37 pr_err("Error registering bcm2835_audio driver %d .\n", retval);
38
39 @@ -368,7 +368,7 @@ static int bcm2835_alsa_device_init(void
40
41 static void bcm2835_alsa_device_exit(void)
42 {
43 - platform_driver_unregister(&bcm2835_alsa0_driver);
44 + platform_driver_unregister(&bcm2835_alsa_driver);
45 }
46
47 late_initcall(bcm2835_alsa_device_init);