diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 17:52:08 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-28 06:33:29 -0500 |
| commit | 5bbcc3c0d0f063318ec83146d1958acf7154c66f (patch) | |
| tree | f0fdcb131a8c1dd2c58b727357f897e1f15d0791 | |
| parent | be086aa8ca7aac8292db9f1a6a17756fb1cfda81 (diff) | |
ASoC: Convert CODEC drivers to module_platform_driver
Factors out a bit of boilerplate.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
26 files changed, 26 insertions, 290 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index ea305b88cb55..2d39123dd21a 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c | |||
| @@ -1481,17 +1481,7 @@ static struct platform_driver pm860x_codec_driver = { | |||
| 1481 | .remove = __devexit_p(pm860x_codec_remove), | 1481 | .remove = __devexit_p(pm860x_codec_remove), |
| 1482 | }; | 1482 | }; |
| 1483 | 1483 | ||
| 1484 | static __init int pm860x_init(void) | 1484 | module_platform_driver(pm860x_codec_driver); |
| 1485 | { | ||
| 1486 | return platform_driver_register(&pm860x_codec_driver); | ||
| 1487 | } | ||
| 1488 | module_init(pm860x_init); | ||
| 1489 | |||
| 1490 | static __exit void pm860x_exit(void) | ||
| 1491 | { | ||
| 1492 | platform_driver_unregister(&pm860x_codec_driver); | ||
| 1493 | } | ||
| 1494 | module_exit(pm860x_exit); | ||
| 1495 | 1485 | ||
| 1496 | MODULE_DESCRIPTION("ASoC 88PM860x driver"); | 1486 | MODULE_DESCRIPTION("ASoC 88PM860x driver"); |
| 1497 | MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); | 1487 | MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); |
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index 8f3216793eb5..221ec29f68e3 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
| @@ -148,17 +148,7 @@ static struct platform_driver ac97_codec_driver = { | |||
| 148 | .remove = __devexit_p(ac97_remove), | 148 | .remove = __devexit_p(ac97_remove), |
| 149 | }; | 149 | }; |
| 150 | 150 | ||
| 151 | static int __init ac97_init(void) | 151 | module_platform_driver(ac97_codec_driver); |
| 152 | { | ||
| 153 | return platform_driver_register(&ac97_codec_driver); | ||
| 154 | } | ||
| 155 | module_init(ac97_init); | ||
| 156 | |||
| 157 | static void __exit ac97_exit(void) | ||
| 158 | { | ||
| 159 | platform_driver_unregister(&ac97_codec_driver); | ||
| 160 | } | ||
| 161 | module_exit(ac97_exit); | ||
| 162 | 152 | ||
| 163 | MODULE_DESCRIPTION("Soc Generic AC97 driver"); | 153 | MODULE_DESCRIPTION("Soc Generic AC97 driver"); |
| 164 | MODULE_AUTHOR("Liam Girdwood"); | 154 | MODULE_AUTHOR("Liam Girdwood"); |
diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c index e3931cc5e66c..9bba7f849464 100644 --- a/sound/soc/codecs/ad1980.c +++ b/sound/soc/codecs/ad1980.c | |||
| @@ -277,17 +277,7 @@ static struct platform_driver ad1980_codec_driver = { | |||
| 277 | .remove = __devexit_p(ad1980_remove), | 277 | .remove = __devexit_p(ad1980_remove), |
| 278 | }; | 278 | }; |
| 279 | 279 | ||
| 280 | static int __init ad1980_init(void) | 280 | module_platform_driver(ad1980_codec_driver); |
| 281 | { | ||
| 282 | return platform_driver_register(&ad1980_codec_driver); | ||
| 283 | } | ||
| 284 | module_init(ad1980_init); | ||
| 285 | |||
| 286 | static void __exit ad1980_exit(void) | ||
| 287 | { | ||
| 288 | platform_driver_unregister(&ad1980_codec_driver); | ||
| 289 | } | ||
| 290 | module_exit(ad1980_exit); | ||
| 291 | 281 | ||
| 292 | MODULE_DESCRIPTION("ASoC ad1980 driver (Obsolete)"); | 282 | MODULE_DESCRIPTION("ASoC ad1980 driver (Obsolete)"); |
| 293 | MODULE_AUTHOR("Roy Huang, Cliff Cai"); | 283 | MODULE_AUTHOR("Roy Huang, Cliff Cai"); |
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c index 8d793e993e9a..ee7a68dcefd2 100644 --- a/sound/soc/codecs/ad73311.c +++ b/sound/soc/codecs/ad73311.c | |||
| @@ -63,17 +63,7 @@ static struct platform_driver ad73311_codec_driver = { | |||
| 63 | .remove = __devexit_p(ad73311_remove), | 63 | .remove = __devexit_p(ad73311_remove), |
| 64 | }; | 64 | }; |
| 65 | 65 | ||
| 66 | static int __init ad73311_init(void) | 66 | module_platform_driver(ad73311_codec_driver); |
| 67 | { | ||
| 68 | return platform_driver_register(&ad73311_codec_driver); | ||
| 69 | } | ||
| 70 | module_init(ad73311_init); | ||
| 71 | |||
| 72 | static void __exit ad73311_exit(void) | ||
| 73 | { | ||
| 74 | platform_driver_unregister(&ad73311_codec_driver); | ||
| 75 | } | ||
| 76 | module_exit(ad73311_exit); | ||
| 77 | 67 | ||
| 78 | MODULE_DESCRIPTION("ASoC ad73311 driver"); | 68 | MODULE_DESCRIPTION("ASoC ad73311 driver"); |
| 79 | MODULE_AUTHOR("Cliff Cai "); | 69 | MODULE_AUTHOR("Cliff Cai "); |
diff --git a/sound/soc/codecs/ads117x.c b/sound/soc/codecs/ads117x.c index 9082e0f729f3..8103b938b8c0 100644 --- a/sound/soc/codecs/ads117x.c +++ b/sound/soc/codecs/ads117x.c | |||
| @@ -58,17 +58,7 @@ static struct platform_driver ads117x_codec_driver = { | |||
| 58 | .remove = __devexit_p(ads117x_remove), | 58 | .remove = __devexit_p(ads117x_remove), |
| 59 | }; | 59 | }; |
| 60 | 60 | ||
| 61 | static int __init ads117x_init(void) | 61 | module_platform_driver(ads117x_codec_driver); |
| 62 | { | ||
| 63 | return platform_driver_register(&ads117x_codec_driver); | ||
| 64 | } | ||
| 65 | module_init(ads117x_init); | ||
| 66 | |||
| 67 | static void __exit ads117x_exit(void) | ||
| 68 | { | ||
| 69 | platform_driver_unregister(&ads117x_codec_driver); | ||
| 70 | } | ||
| 71 | module_exit(ads117x_exit); | ||
| 72 | 62 | ||
| 73 | MODULE_DESCRIPTION("ASoC ads117x driver"); | 63 | MODULE_DESCRIPTION("ASoC ads117x driver"); |
| 74 | MODULE_AUTHOR("Graeme Gregory"); | 64 | MODULE_AUTHOR("Graeme Gregory"); |
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c index cbb3028e2008..4854b472d5fd 100644 --- a/sound/soc/codecs/cq93vc.c +++ b/sound/soc/codecs/cq93vc.c | |||
| @@ -206,17 +206,7 @@ static struct platform_driver cq93vc_codec_driver = { | |||
| 206 | .remove = __devexit_p(cq93vc_platform_remove), | 206 | .remove = __devexit_p(cq93vc_platform_remove), |
| 207 | }; | 207 | }; |
| 208 | 208 | ||
| 209 | static int __init cq93vc_init(void) | 209 | module_platform_driver(cq93vc_codec_driver); |
| 210 | { | ||
| 211 | return platform_driver_register(&cq93vc_codec_driver); | ||
| 212 | } | ||
| 213 | module_init(cq93vc_init); | ||
| 214 | |||
| 215 | static void __exit cq93vc_exit(void) | ||
| 216 | { | ||
| 217 | platform_driver_unregister(&cq93vc_codec_driver); | ||
| 218 | } | ||
| 219 | module_exit(cq93vc_exit); | ||
| 220 | 210 | ||
| 221 | MODULE_DESCRIPTION("Texas Instruments DaVinci ASoC CQ0093 Voice Codec Driver"); | 211 | MODULE_DESCRIPTION("Texas Instruments DaVinci ASoC CQ0093 Voice Codec Driver"); |
| 222 | MODULE_AUTHOR("Miguel Aguilar"); | 212 | MODULE_AUTHOR("Miguel Aguilar"); |
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c index bc7067db8ae4..ae55e31bfc72 100644 --- a/sound/soc/codecs/cx20442.c +++ b/sound/soc/codecs/cx20442.c | |||
| @@ -391,17 +391,7 @@ static struct platform_driver cx20442_platform_driver = { | |||
| 391 | .remove = __exit_p(cx20442_platform_remove), | 391 | .remove = __exit_p(cx20442_platform_remove), |
| 392 | }; | 392 | }; |
| 393 | 393 | ||
| 394 | static int __init cx20442_init(void) | 394 | module_platform_driver(cx20442_platform_driver); |
| 395 | { | ||
| 396 | return platform_driver_register(&cx20442_platform_driver); | ||
| 397 | } | ||
| 398 | module_init(cx20442_init); | ||
| 399 | |||
| 400 | static void __exit cx20442_exit(void) | ||
| 401 | { | ||
| 402 | platform_driver_unregister(&cx20442_platform_driver); | ||
| 403 | } | ||
| 404 | module_exit(cx20442_exit); | ||
| 405 | 395 | ||
| 406 | MODULE_DESCRIPTION("ASoC CX20442-11 voice modem codec driver"); | 396 | MODULE_DESCRIPTION("ASoC CX20442-11 voice modem codec driver"); |
| 407 | MODULE_AUTHOR("Janusz Krzysztofik"); | 397 | MODULE_AUTHOR("Janusz Krzysztofik"); |
diff --git a/sound/soc/codecs/dfbmcs320.c b/sound/soc/codecs/dfbmcs320.c index 704bbde65737..bfe46aa90362 100644 --- a/sound/soc/codecs/dfbmcs320.c +++ b/sound/soc/codecs/dfbmcs320.c | |||
| @@ -55,17 +55,7 @@ static struct platform_driver dfmcs320_driver = { | |||
| 55 | .remove = __devexit_p(dfbmcs320_remove), | 55 | .remove = __devexit_p(dfbmcs320_remove), |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | static int __init dfbmcs320_init(void) | 58 | module_platform_driver(dfmcs320_driver); |
| 59 | { | ||
| 60 | return platform_driver_register(&dfmcs320_driver); | ||
| 61 | } | ||
| 62 | module_init(dfbmcs320_init); | ||
| 63 | |||
| 64 | static void __exit dfbmcs320_exit(void) | ||
| 65 | { | ||
| 66 | platform_driver_unregister(&dfmcs320_driver); | ||
| 67 | } | ||
| 68 | module_exit(dfbmcs320_exit); | ||
| 69 | 59 | ||
| 70 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 60 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |
| 71 | MODULE_DESCRIPTION("ASoC DFBM-CS320 bluethooth module driver"); | 61 | MODULE_DESCRIPTION("ASoC DFBM-CS320 bluethooth module driver"); |
diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c index 6fae765e3ad8..3e929f079a1f 100644 --- a/sound/soc/codecs/dmic.c +++ b/sound/soc/codecs/dmic.c | |||
| @@ -89,17 +89,7 @@ static struct platform_driver dmic_driver = { | |||
| 89 | .remove = __devexit_p(dmic_dev_remove), | 89 | .remove = __devexit_p(dmic_dev_remove), |
| 90 | }; | 90 | }; |
| 91 | 91 | ||
| 92 | static int __init dmic_init(void) | 92 | module_platform_driver(dmic_driver); |
| 93 | { | ||
| 94 | return platform_driver_register(&dmic_driver); | ||
| 95 | } | ||
| 96 | module_init(dmic_init); | ||
| 97 | |||
| 98 | static void __exit dmic_exit(void) | ||
| 99 | { | ||
| 100 | platform_driver_unregister(&dmic_driver); | ||
| 101 | } | ||
| 102 | module_exit(dmic_exit); | ||
| 103 | 93 | ||
| 104 | MODULE_DESCRIPTION("Generic DMIC driver"); | 94 | MODULE_DESCRIPTION("Generic DMIC driver"); |
| 105 | MODULE_AUTHOR("Liam Girdwood <lrg@slimlogic.co.uk>"); | 95 | MODULE_AUTHOR("Liam Girdwood <lrg@slimlogic.co.uk>"); |
diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index 64a479c3429a..4fca8bccd535 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c | |||
| @@ -424,17 +424,7 @@ static struct platform_driver jz4740_codec_driver = { | |||
| 424 | }, | 424 | }, |
| 425 | }; | 425 | }; |
| 426 | 426 | ||
| 427 | static int __init jz4740_codec_init(void) | 427 | module_platform_driver(jz4740_codec_driver); |
| 428 | { | ||
| 429 | return platform_driver_register(&jz4740_codec_driver); | ||
| 430 | } | ||
| 431 | module_init(jz4740_codec_init); | ||
| 432 | |||
| 433 | static void __exit jz4740_codec_exit(void) | ||
| 434 | { | ||
| 435 | platform_driver_unregister(&jz4740_codec_driver); | ||
| 436 | } | ||
| 437 | module_exit(jz4740_codec_exit); | ||
| 438 | 428 | ||
| 439 | MODULE_DESCRIPTION("JZ4740 SoC internal codec driver"); | 429 | MODULE_DESCRIPTION("JZ4740 SoC internal codec driver"); |
| 440 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 430 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c index f7316519432c..b12d01f67990 100644 --- a/sound/soc/codecs/pcm3008.c +++ b/sound/soc/codecs/pcm3008.c | |||
| @@ -172,17 +172,7 @@ static struct platform_driver pcm3008_codec_driver = { | |||
| 172 | }, | 172 | }, |
| 173 | }; | 173 | }; |
| 174 | 174 | ||
| 175 | static int __init pcm3008_modinit(void) | 175 | module_platform_driver(pcm3008_codec_driver); |
| 176 | { | ||
| 177 | return platform_driver_register(&pcm3008_codec_driver); | ||
| 178 | } | ||
| 179 | module_init(pcm3008_modinit); | ||
| 180 | |||
| 181 | static void __exit pcm3008_exit(void) | ||
| 182 | { | ||
| 183 | platform_driver_unregister(&pcm3008_codec_driver); | ||
| 184 | } | ||
| 185 | module_exit(pcm3008_exit); | ||
| 186 | 176 | ||
| 187 | MODULE_DESCRIPTION("Soc PCM3008 driver"); | 177 | MODULE_DESCRIPTION("Soc PCM3008 driver"); |
| 188 | MODULE_AUTHOR("Hugo Villeneuve"); | 178 | MODULE_AUTHOR("Hugo Villeneuve"); |
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c index 65f2ef986c4f..f99baa0b8c39 100644 --- a/sound/soc/codecs/sn95031.c +++ b/sound/soc/codecs/sn95031.c | |||
| @@ -920,19 +920,7 @@ static struct platform_driver sn95031_codec_driver = { | |||
| 920 | .remove = __devexit_p(sn95031_device_remove), | 920 | .remove = __devexit_p(sn95031_device_remove), |
| 921 | }; | 921 | }; |
| 922 | 922 | ||
| 923 | static int __init sn95031_init(void) | 923 | module_platform_driver(sn95031_codec_driver); |
| 924 | { | ||
| 925 | pr_debug("driver init called\n"); | ||
| 926 | return platform_driver_register(&sn95031_codec_driver); | ||
| 927 | } | ||
| 928 | module_init(sn95031_init); | ||
| 929 | |||
| 930 | static void __exit sn95031_exit(void) | ||
| 931 | { | ||
| 932 | pr_debug("driver exit called\n"); | ||
| 933 | platform_driver_unregister(&sn95031_codec_driver); | ||
| 934 | } | ||
| 935 | module_exit(sn95031_exit); | ||
| 936 | 924 | ||
| 937 | MODULE_DESCRIPTION("ASoC TI SN95031 codec driver"); | 925 | MODULE_DESCRIPTION("ASoC TI SN95031 codec driver"); |
| 938 | MODULE_AUTHOR("Vinod Koul <vinod.koul@intel.com>"); | 926 | MODULE_AUTHOR("Vinod Koul <vinod.koul@intel.com>"); |
diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs/spdif_transciever.c index 6a1a7e705cd7..112a49d66e39 100644 --- a/sound/soc/codecs/spdif_transciever.c +++ b/sound/soc/codecs/spdif_transciever.c | |||
| @@ -61,18 +61,7 @@ static struct platform_driver spdif_dit_driver = { | |||
| 61 | }, | 61 | }, |
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | static int __init dit_modinit(void) | 64 | module_platform_driver(spdif_dit_driver); |
| 65 | { | ||
| 66 | return platform_driver_register(&spdif_dit_driver); | ||
| 67 | } | ||
| 68 | |||
| 69 | static void __exit dit_exit(void) | ||
| 70 | { | ||
| 71 | platform_driver_unregister(&spdif_dit_driver); | ||
| 72 | } | ||
| 73 | |||
| 74 | module_init(dit_modinit); | ||
| 75 | module_exit(dit_exit); | ||
| 76 | 65 | ||
| 77 | MODULE_AUTHOR("Steve Chen <schen@mvista.com>"); | 66 | MODULE_AUTHOR("Steve Chen <schen@mvista.com>"); |
| 78 | MODULE_DESCRIPTION("SPDIF dummy codec driver"); | 67 | MODULE_DESCRIPTION("SPDIF dummy codec driver"); |
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index e4783a4f71fd..55819537b677 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c | |||
| @@ -408,17 +408,7 @@ static struct platform_driver stac9766_codec_driver = { | |||
| 408 | .remove = __devexit_p(stac9766_remove), | 408 | .remove = __devexit_p(stac9766_remove), |
| 409 | }; | 409 | }; |
| 410 | 410 | ||
| 411 | static int __init stac9766_init(void) | 411 | module_platform_driver(stac9766_codec_driver); |
| 412 | { | ||
| 413 | return platform_driver_register(&stac9766_codec_driver); | ||
| 414 | } | ||
| 415 | module_init(stac9766_init); | ||
| 416 | |||
| 417 | static void __exit stac9766_exit(void) | ||
| 418 | { | ||
| 419 | platform_driver_unregister(&stac9766_codec_driver); | ||
| 420 | } | ||
| 421 | module_exit(stac9766_exit); | ||
| 422 | 412 | ||
| 423 | MODULE_DESCRIPTION("ASoC stac9766 driver"); | 413 | MODULE_DESCRIPTION("ASoC stac9766 driver"); |
| 424 | MODULE_AUTHOR("Jon Smirl <jonsmirl@gmail.com>"); | 414 | MODULE_AUTHOR("Jon Smirl <jonsmirl@gmail.com>"); |
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 2a3a52838e9c..61d8a9065ff3 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
| @@ -2294,17 +2294,7 @@ static struct platform_driver twl4030_codec_driver = { | |||
| 2294 | }, | 2294 | }, |
| 2295 | }; | 2295 | }; |
| 2296 | 2296 | ||
| 2297 | static int __init twl4030_modinit(void) | 2297 | module_platform_driver(twl4030_codec_driver); |
| 2298 | { | ||
| 2299 | return platform_driver_register(&twl4030_codec_driver); | ||
| 2300 | } | ||
| 2301 | module_init(twl4030_modinit); | ||
| 2302 | |||
| 2303 | static void __exit twl4030_exit(void) | ||
| 2304 | { | ||
| 2305 | platform_driver_unregister(&twl4030_codec_driver); | ||
| 2306 | } | ||
| 2307 | module_exit(twl4030_exit); | ||
| 2308 | 2298 | ||
| 2309 | MODULE_DESCRIPTION("ASoC TWL4030 codec driver"); | 2299 | MODULE_DESCRIPTION("ASoC TWL4030 codec driver"); |
| 2310 | MODULE_AUTHOR("Steve Sakoman"); | 2300 | MODULE_AUTHOR("Steve Sakoman"); |
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index 17930edd3a2c..a4a65dc9e33a 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
| @@ -1620,17 +1620,7 @@ static struct platform_driver twl6040_codec_driver = { | |||
| 1620 | .remove = __devexit_p(twl6040_codec_remove), | 1620 | .remove = __devexit_p(twl6040_codec_remove), |
| 1621 | }; | 1621 | }; |
| 1622 | 1622 | ||
| 1623 | static int __init twl6040_codec_init(void) | 1623 | module_platform_driver(twl6040_codec_driver); |
| 1624 | { | ||
| 1625 | return platform_driver_register(&twl6040_codec_driver); | ||
| 1626 | } | ||
| 1627 | module_init(twl6040_codec_init); | ||
| 1628 | |||
| 1629 | static void __exit twl6040_codec_exit(void) | ||
| 1630 | { | ||
| 1631 | platform_driver_unregister(&twl6040_codec_driver); | ||
| 1632 | } | ||
| 1633 | module_exit(twl6040_codec_exit); | ||
| 1634 | 1624 | ||
| 1635 | MODULE_DESCRIPTION("ASoC TWL6040 codec driver"); | 1625 | MODULE_DESCRIPTION("ASoC TWL6040 codec driver"); |
| 1636 | MODULE_AUTHOR("Misael Lopez Cruz"); | 1626 | MODULE_AUTHOR("Misael Lopez Cruz"); |
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c index 486aef637eed..d0f9d904ce8f 100644 --- a/sound/soc/codecs/uda134x.c +++ b/sound/soc/codecs/uda134x.c | |||
| @@ -625,17 +625,7 @@ static struct platform_driver uda134x_codec_driver = { | |||
| 625 | .remove = __devexit_p(uda134x_codec_remove), | 625 | .remove = __devexit_p(uda134x_codec_remove), |
| 626 | }; | 626 | }; |
| 627 | 627 | ||
| 628 | static int __init uda134x_codec_init(void) | 628 | module_platform_driver(uda134x_codec_driver); |
| 629 | { | ||
| 630 | return platform_driver_register(&uda134x_codec_driver); | ||
| 631 | } | ||
| 632 | module_init(uda134x_codec_init); | ||
| 633 | |||
| 634 | static void __exit uda134x_codec_exit(void) | ||
| 635 | { | ||
| 636 | platform_driver_unregister(&uda134x_codec_driver); | ||
| 637 | } | ||
| 638 | module_exit(uda134x_codec_exit); | ||
| 639 | 629 | ||
| 640 | MODULE_DESCRIPTION("UDA134X ALSA soc codec driver"); | 630 | MODULE_DESCRIPTION("UDA134X ALSA soc codec driver"); |
| 641 | MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>"); | 631 | MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>"); |
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 9531c35dccad..44aacf927ba9 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
| @@ -510,17 +510,7 @@ static struct platform_driver wl1273_platform_driver = { | |||
| 510 | .remove = __devexit_p(wl1273_platform_remove), | 510 | .remove = __devexit_p(wl1273_platform_remove), |
| 511 | }; | 511 | }; |
| 512 | 512 | ||
| 513 | static int __init wl1273_init(void) | 513 | module_platform_driver(wl1273_platform_driver); |
| 514 | { | ||
| 515 | return platform_driver_register(&wl1273_platform_driver); | ||
| 516 | } | ||
| 517 | module_init(wl1273_init); | ||
| 518 | |||
| 519 | static void __exit wl1273_exit(void) | ||
| 520 | { | ||
| 521 | platform_driver_unregister(&wl1273_platform_driver); | ||
| 522 | } | ||
| 523 | module_exit(wl1273_exit); | ||
| 524 | 514 | ||
| 525 | MODULE_AUTHOR("Matti Aaltonen <matti.j.aaltonen@nokia.com>"); | 515 | MODULE_AUTHOR("Matti Aaltonen <matti.j.aaltonen@nokia.com>"); |
| 526 | MODULE_DESCRIPTION("ASoC WL1273 codec driver"); | 516 | MODULE_DESCRIPTION("ASoC WL1273 codec driver"); |
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 3b846c95f07f..3f1ed5f5ccf4 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
| @@ -1711,17 +1711,7 @@ static struct platform_driver wm8350_codec_driver = { | |||
| 1711 | .remove = __devexit_p(wm8350_remove), | 1711 | .remove = __devexit_p(wm8350_remove), |
| 1712 | }; | 1712 | }; |
| 1713 | 1713 | ||
| 1714 | static __init int wm8350_init(void) | 1714 | module_platform_driver(wm8350_codec_driver); |
| 1715 | { | ||
| 1716 | return platform_driver_register(&wm8350_codec_driver); | ||
| 1717 | } | ||
| 1718 | module_init(wm8350_init); | ||
| 1719 | |||
| 1720 | static __exit void wm8350_exit(void) | ||
| 1721 | { | ||
| 1722 | platform_driver_unregister(&wm8350_codec_driver); | ||
| 1723 | } | ||
| 1724 | module_exit(wm8350_exit); | ||
| 1725 | 1715 | ||
| 1726 | MODULE_DESCRIPTION("ASoC WM8350 driver"); | 1716 | MODULE_DESCRIPTION("ASoC WM8350 driver"); |
| 1727 | MODULE_AUTHOR("Liam Girdwood"); | 1717 | MODULE_AUTHOR("Liam Girdwood"); |
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index 07d84a86e14e..a1173eb7936d 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
| @@ -1477,17 +1477,7 @@ static struct platform_driver wm8400_codec_driver = { | |||
| 1477 | .remove = __devexit_p(wm8400_remove), | 1477 | .remove = __devexit_p(wm8400_remove), |
| 1478 | }; | 1478 | }; |
| 1479 | 1479 | ||
| 1480 | static __init int wm8400_init(void) | 1480 | module_platform_driver(wm8400_codec_driver); |
| 1481 | { | ||
| 1482 | return platform_driver_register(&wm8400_codec_driver); | ||
| 1483 | } | ||
| 1484 | module_init(wm8400_init); | ||
| 1485 | |||
| 1486 | static __exit void wm8400_exit(void) | ||
| 1487 | { | ||
| 1488 | platform_driver_unregister(&wm8400_codec_driver); | ||
| 1489 | } | ||
| 1490 | module_exit(wm8400_exit); | ||
| 1491 | 1481 | ||
| 1492 | MODULE_DESCRIPTION("ASoC WM8400 driver"); | 1482 | MODULE_DESCRIPTION("ASoC WM8400 driver"); |
| 1493 | MODULE_AUTHOR("Mark Brown"); | 1483 | MODULE_AUTHOR("Mark Brown"); |
diff --git a/sound/soc/codecs/wm8727.c b/sound/soc/codecs/wm8727.c index 748808285119..fad90a35f399 100644 --- a/sound/soc/codecs/wm8727.c +++ b/sound/soc/codecs/wm8727.c | |||
| @@ -67,17 +67,7 @@ static struct platform_driver wm8727_codec_driver = { | |||
| 67 | .remove = __devexit_p(wm8727_remove), | 67 | .remove = __devexit_p(wm8727_remove), |
| 68 | }; | 68 | }; |
| 69 | 69 | ||
| 70 | static int __init wm8727_init(void) | 70 | module_platform_driver(wm8727_codec_driver); |
| 71 | { | ||
| 72 | return platform_driver_register(&wm8727_codec_driver); | ||
| 73 | } | ||
| 74 | module_init(wm8727_init); | ||
| 75 | |||
| 76 | static void __exit wm8727_exit(void) | ||
| 77 | { | ||
| 78 | platform_driver_unregister(&wm8727_codec_driver); | ||
| 79 | } | ||
| 80 | module_exit(wm8727_exit); | ||
| 81 | 71 | ||
| 82 | MODULE_DESCRIPTION("ASoC wm8727 driver"); | 72 | MODULE_DESCRIPTION("ASoC wm8727 driver"); |
| 83 | MODULE_AUTHOR("Neil Jones"); | 73 | MODULE_AUTHOR("Neil Jones"); |
diff --git a/sound/soc/codecs/wm8782.c b/sound/soc/codecs/wm8782.c index f2ced71328b0..3fdea98f732e 100644 --- a/sound/soc/codecs/wm8782.c +++ b/sound/soc/codecs/wm8782.c | |||
| @@ -63,17 +63,7 @@ static struct platform_driver wm8782_codec_driver = { | |||
| 63 | .remove = __devexit_p(wm8782_remove), | 63 | .remove = __devexit_p(wm8782_remove), |
| 64 | }; | 64 | }; |
| 65 | 65 | ||
| 66 | static int __init wm8782_init(void) | 66 | module_platform_driver(wm8782_codec_driver); |
| 67 | { | ||
| 68 | return platform_driver_register(&wm8782_codec_driver); | ||
| 69 | } | ||
| 70 | module_init(wm8782_init); | ||
| 71 | |||
| 72 | static void __exit wm8782_exit(void) | ||
| 73 | { | ||
| 74 | platform_driver_unregister(&wm8782_codec_driver); | ||
| 75 | } | ||
| 76 | module_exit(wm8782_exit); | ||
| 77 | 67 | ||
| 78 | MODULE_DESCRIPTION("ASoC WM8782 driver"); | 68 | MODULE_DESCRIPTION("ASoC WM8782 driver"); |
| 79 | MODULE_AUTHOR("Johannes Stezenbach <js@sig21.net>"); | 69 | MODULE_AUTHOR("Johannes Stezenbach <js@sig21.net>"); |
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 73db9806c475..380e3f2f3190 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
| @@ -3579,18 +3579,7 @@ static struct platform_driver wm8994_codec_driver = { | |||
| 3579 | .remove = __devexit_p(wm8994_remove), | 3579 | .remove = __devexit_p(wm8994_remove), |
| 3580 | }; | 3580 | }; |
| 3581 | 3581 | ||
| 3582 | static __init int wm8994_init(void) | 3582 | module_platform_driver(wm8994_codec_driver); |
| 3583 | { | ||
| 3584 | return platform_driver_register(&wm8994_codec_driver); | ||
| 3585 | } | ||
| 3586 | module_init(wm8994_init); | ||
| 3587 | |||
| 3588 | static __exit void wm8994_exit(void) | ||
| 3589 | { | ||
| 3590 | platform_driver_unregister(&wm8994_codec_driver); | ||
| 3591 | } | ||
| 3592 | module_exit(wm8994_exit); | ||
| 3593 | |||
| 3594 | 3583 | ||
| 3595 | MODULE_DESCRIPTION("ASoC WM8994 driver"); | 3584 | MODULE_DESCRIPTION("ASoC WM8994 driver"); |
| 3596 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 3585 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index edf603281ce7..b720a43c422c 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
| @@ -406,17 +406,7 @@ static struct platform_driver wm9705_codec_driver = { | |||
| 406 | .remove = __devexit_p(wm9705_remove), | 406 | .remove = __devexit_p(wm9705_remove), |
| 407 | }; | 407 | }; |
| 408 | 408 | ||
| 409 | static int __init wm9705_init(void) | 409 | module_platform_driver(wm9705_codec_driver); |
| 410 | { | ||
| 411 | return platform_driver_register(&wm9705_codec_driver); | ||
| 412 | } | ||
| 413 | module_init(wm9705_init); | ||
| 414 | |||
| 415 | static void __exit wm9705_exit(void) | ||
| 416 | { | ||
| 417 | platform_driver_unregister(&wm9705_codec_driver); | ||
| 418 | } | ||
| 419 | module_exit(wm9705_exit); | ||
| 420 | 410 | ||
| 421 | MODULE_DESCRIPTION("ASoC WM9705 driver"); | 411 | MODULE_DESCRIPTION("ASoC WM9705 driver"); |
| 422 | MODULE_AUTHOR("Ian Molton"); | 412 | MODULE_AUTHOR("Ian Molton"); |
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index fd1812704af8..4ce73f59df20 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
| @@ -694,17 +694,7 @@ static struct platform_driver wm9712_codec_driver = { | |||
| 694 | .remove = __devexit_p(wm9712_remove), | 694 | .remove = __devexit_p(wm9712_remove), |
| 695 | }; | 695 | }; |
| 696 | 696 | ||
| 697 | static int __init wm9712_init(void) | 697 | module_platform_driver(wm9712_codec_driver); |
| 698 | { | ||
| 699 | return platform_driver_register(&wm9712_codec_driver); | ||
| 700 | } | ||
| 701 | module_init(wm9712_init); | ||
| 702 | |||
| 703 | static void __exit wm9712_exit(void) | ||
| 704 | { | ||
| 705 | platform_driver_unregister(&wm9712_codec_driver); | ||
| 706 | } | ||
| 707 | module_exit(wm9712_exit); | ||
| 708 | 698 | ||
| 709 | MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver"); | 699 | MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver"); |
| 710 | MODULE_AUTHOR("Liam Girdwood"); | 700 | MODULE_AUTHOR("Liam Girdwood"); |
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 09360b60037c..edb598182c69 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c | |||
| @@ -1277,17 +1277,7 @@ static struct platform_driver wm9713_codec_driver = { | |||
| 1277 | .remove = __devexit_p(wm9713_remove), | 1277 | .remove = __devexit_p(wm9713_remove), |
| 1278 | }; | 1278 | }; |
| 1279 | 1279 | ||
| 1280 | static int __init wm9713_init(void) | 1280 | module_platform_driver(wm9713_codec_driver); |
| 1281 | { | ||
| 1282 | return platform_driver_register(&wm9713_codec_driver); | ||
| 1283 | } | ||
| 1284 | module_init(wm9713_init); | ||
| 1285 | |||
| 1286 | static void __exit wm9713_exit(void) | ||
| 1287 | { | ||
| 1288 | platform_driver_unregister(&wm9713_codec_driver); | ||
| 1289 | } | ||
| 1290 | module_exit(wm9713_exit); | ||
| 1291 | 1281 | ||
| 1292 | MODULE_DESCRIPTION("ASoC WM9713/WM9714 driver"); | 1282 | MODULE_DESCRIPTION("ASoC WM9713/WM9714 driver"); |
| 1293 | MODULE_AUTHOR("Liam Girdwood"); | 1283 | MODULE_AUTHOR("Liam Girdwood"); |
