Commit 666a6bd7 authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Greg Kroah-Hartman

staging: bcm2835-audio: rename platform_driver structure

It was called bcm2835_alsa0_driver, that "0" didn't mean much.
Suggested-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Acked-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 907bf3db
...@@ -343,7 +343,7 @@ static const struct of_device_id snd_bcm2835_of_match_table[] = { ...@@ -343,7 +343,7 @@ static const struct of_device_id snd_bcm2835_of_match_table[] = {
}; };
MODULE_DEVICE_TABLE(of, snd_bcm2835_of_match_table); MODULE_DEVICE_TABLE(of, snd_bcm2835_of_match_table);
static struct platform_driver bcm2835_alsa0_driver = { static struct platform_driver bcm2835_alsa_driver = {
.probe = snd_bcm2835_alsa_probe, .probe = snd_bcm2835_alsa_probe,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.suspend = snd_bcm2835_alsa_suspend, .suspend = snd_bcm2835_alsa_suspend,
...@@ -359,7 +359,7 @@ static int bcm2835_alsa_device_init(void) ...@@ -359,7 +359,7 @@ static int bcm2835_alsa_device_init(void)
{ {
int retval; int retval;
retval = platform_driver_register(&bcm2835_alsa0_driver); retval = platform_driver_register(&bcm2835_alsa_driver);
if (retval) if (retval)
pr_err("Error registering bcm2835_audio driver %d .\n", retval); pr_err("Error registering bcm2835_audio driver %d .\n", retval);
...@@ -368,7 +368,7 @@ static int bcm2835_alsa_device_init(void) ...@@ -368,7 +368,7 @@ static int bcm2835_alsa_device_init(void)
static void bcm2835_alsa_device_exit(void) static void bcm2835_alsa_device_exit(void)
{ {
platform_driver_unregister(&bcm2835_alsa0_driver); platform_driver_unregister(&bcm2835_alsa_driver);
} }
late_initcall(bcm2835_alsa_device_init); late_initcall(bcm2835_alsa_device_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment