1 From f1aada1b4c974fa756e299c15b62c76e478e652e Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <stefan.wahren@i2se.com>
3 Date: Thu, 18 Oct 2018 19:47:29 +0200
4 Subject: [PATCH 233/806] staging: bcm2835-audio: use module_platform_driver()
7 There is not much value behind this boilerplate, so use
8 module_platform_driver() instead.
10 Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
12 .../vc04_services/bcm2835-audio/bcm2835.c | 20 +------------------
13 1 file changed, 1 insertion(+), 19 deletions(-)
15 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
16 +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
17 @@ -470,25 +470,7 @@ static struct platform_driver bcm2835_al
18 .of_match_table = snd_bcm2835_of_match_table,
22 -static int bcm2835_alsa_device_init(void)
26 - retval = platform_driver_register(&bcm2835_alsa0_driver);
28 - pr_err("Error registering bcm2835_audio driver %d .\n", retval);
33 -static void bcm2835_alsa_device_exit(void)
35 - platform_driver_unregister(&bcm2835_alsa0_driver);
38 -late_initcall(bcm2835_alsa_device_init);
39 -module_exit(bcm2835_alsa_device_exit);
40 +module_platform_driver(bcm2835_alsa0_driver);
42 MODULE_AUTHOR("Dom Cobley");
43 MODULE_DESCRIPTION("Alsa driver for BCM2835 chip");