diff options
Diffstat (limited to 'sound')
224 files changed, 477 insertions, 857 deletions
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c index 3a10df6688ee..38590b322c54 100644 --- a/sound/arm/pxa2xx-ac97.c +++ b/sound/arm/pxa2xx-ac97.c | |||
@@ -241,7 +241,6 @@ static struct platform_driver pxa2xx_ac97_driver = { | |||
241 | .remove = pxa2xx_ac97_remove, | 241 | .remove = pxa2xx_ac97_remove, |
242 | .driver = { | 242 | .driver = { |
243 | .name = "pxa2xx-ac97", | 243 | .name = "pxa2xx-ac97", |
244 | .owner = THIS_MODULE, | ||
245 | #ifdef CONFIG_PM_SLEEP | 244 | #ifdef CONFIG_PM_SLEEP |
246 | .pm = &pxa2xx_ac97_pm_ops, | 245 | .pm = &pxa2xx_ac97_pm_ops, |
247 | #endif | 246 | #endif |
diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c index 023140504104..558618802000 100644 --- a/sound/atmel/abdac.c +++ b/sound/atmel/abdac.c | |||
@@ -588,7 +588,6 @@ static struct platform_driver atmel_abdac_driver = { | |||
588 | .remove = atmel_abdac_remove, | 588 | .remove = atmel_abdac_remove, |
589 | .driver = { | 589 | .driver = { |
590 | .name = "atmel_abdac", | 590 | .name = "atmel_abdac", |
591 | .owner = THIS_MODULE, | ||
592 | .pm = ATMEL_ABDAC_PM_OPS, | 591 | .pm = ATMEL_ABDAC_PM_OPS, |
593 | }, | 592 | }, |
594 | }; | 593 | }; |
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index cb44c74c9702..4f6b14d704f3 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
@@ -1203,7 +1203,6 @@ static struct platform_driver atmel_ac97c_driver = { | |||
1203 | .remove = atmel_ac97c_remove, | 1203 | .remove = atmel_ac97c_remove, |
1204 | .driver = { | 1204 | .driver = { |
1205 | .name = "atmel_ac97c", | 1205 | .name = "atmel_ac97c", |
1206 | .owner = THIS_MODULE, | ||
1207 | .pm = ATMEL_AC97C_PM_OPS, | 1206 | .pm = ATMEL_AC97C_PM_OPS, |
1208 | }, | 1207 | }, |
1209 | }; | 1208 | }; |
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 2a16c86a60b3..7ea53399404d 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c | |||
@@ -1220,7 +1220,6 @@ static struct platform_driver loopback_driver = { | |||
1220 | .remove = loopback_remove, | 1220 | .remove = loopback_remove, |
1221 | .driver = { | 1221 | .driver = { |
1222 | .name = SND_LOOPBACK_DRIVER, | 1222 | .name = SND_LOOPBACK_DRIVER, |
1223 | .owner = THIS_MODULE, | ||
1224 | .pm = LOOPBACK_PM_OPS, | 1223 | .pm = LOOPBACK_PM_OPS, |
1225 | }, | 1224 | }, |
1226 | }; | 1225 | }; |
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index fab90bd2bd51..5d0dfb787cec 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -1162,7 +1162,6 @@ static struct platform_driver snd_dummy_driver = { | |||
1162 | .remove = snd_dummy_remove, | 1162 | .remove = snd_dummy_remove, |
1163 | .driver = { | 1163 | .driver = { |
1164 | .name = SND_DUMMY_DRIVER, | 1164 | .name = SND_DUMMY_DRIVER, |
1165 | .owner = THIS_MODULE, | ||
1166 | .pm = SND_DUMMY_PM_OPS, | 1165 | .pm = SND_DUMMY_PM_OPS, |
1167 | }, | 1166 | }, |
1168 | }; | 1167 | }; |
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c index 33ed76530d0b..bcca825a1c8d 100644 --- a/sound/drivers/ml403-ac97cr.c +++ b/sound/drivers/ml403-ac97cr.c | |||
@@ -1335,7 +1335,6 @@ static struct platform_driver snd_ml403_ac97cr_driver = { | |||
1335 | .remove = snd_ml403_ac97cr_remove, | 1335 | .remove = snd_ml403_ac97cr_remove, |
1336 | .driver = { | 1336 | .driver = { |
1337 | .name = SND_ML403_AC97CR_DRIVER, | 1337 | .name = SND_ML403_AC97CR_DRIVER, |
1338 | .owner = THIS_MODULE, | ||
1339 | }, | 1338 | }, |
1340 | }; | 1339 | }; |
1341 | 1340 | ||
diff --git a/sound/drivers/mpu401/mpu401.c b/sound/drivers/mpu401/mpu401.c index 83014b83a44e..fed7e7e2177b 100644 --- a/sound/drivers/mpu401/mpu401.c +++ b/sound/drivers/mpu401/mpu401.c | |||
@@ -140,7 +140,6 @@ static struct platform_driver snd_mpu401_driver = { | |||
140 | .remove = snd_mpu401_remove, | 140 | .remove = snd_mpu401_remove, |
141 | .driver = { | 141 | .driver = { |
142 | .name = SND_MPU401_DRIVER, | 142 | .name = SND_MPU401_DRIVER, |
143 | .owner = THIS_MODULE, | ||
144 | }, | 143 | }, |
145 | }; | 144 | }; |
146 | 145 | ||
diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index 4b66c7f22af7..15769447688f 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c | |||
@@ -759,7 +759,6 @@ static struct platform_driver snd_mtpav_driver = { | |||
759 | .remove = snd_mtpav_remove, | 759 | .remove = snd_mtpav_remove, |
760 | .driver = { | 760 | .driver = { |
761 | .name = SND_MTPAV_DRIVER, | 761 | .name = SND_MTPAV_DRIVER, |
762 | .owner = THIS_MODULE, | ||
763 | }, | 762 | }, |
764 | }; | 763 | }; |
765 | 764 | ||
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c index 0388fbbd2c06..2a008a9ccf85 100644 --- a/sound/drivers/mts64.c +++ b/sound/drivers/mts64.c | |||
@@ -1030,7 +1030,6 @@ static struct platform_driver snd_mts64_driver = { | |||
1030 | .remove = snd_mts64_remove, | 1030 | .remove = snd_mts64_remove, |
1031 | .driver = { | 1031 | .driver = { |
1032 | .name = PLATFORM_DRIVER, | 1032 | .name = PLATFORM_DRIVER, |
1033 | .owner = THIS_MODULE, | ||
1034 | } | 1033 | } |
1035 | }; | 1034 | }; |
1036 | 1035 | ||
diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index 36808cdab06f..2adc7548ffca 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c | |||
@@ -221,7 +221,6 @@ static void pcsp_shutdown(struct platform_device *dev) | |||
221 | static struct platform_driver pcsp_platform_driver = { | 221 | static struct platform_driver pcsp_platform_driver = { |
222 | .driver = { | 222 | .driver = { |
223 | .name = "pcspkr", | 223 | .name = "pcspkr", |
224 | .owner = THIS_MODULE, | ||
225 | .pm = PCSP_PM_OPS, | 224 | .pm = PCSP_PM_OPS, |
226 | }, | 225 | }, |
227 | .probe = pcsp_probe, | 226 | .probe = pcsp_probe, |
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index 78ccfa455527..464385a480e4 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c | |||
@@ -829,7 +829,6 @@ static struct platform_driver snd_portman_driver = { | |||
829 | .remove = snd_portman_remove, | 829 | .remove = snd_portman_remove, |
830 | .driver = { | 830 | .driver = { |
831 | .name = PLATFORM_DRIVER, | 831 | .name = PLATFORM_DRIVER, |
832 | .owner = THIS_MODULE, | ||
833 | } | 832 | } |
834 | }; | 833 | }; |
835 | 834 | ||
diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index 9ad4414fa25c..13a34e3c6382 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c | |||
@@ -994,7 +994,6 @@ static struct platform_driver snd_serial_driver = { | |||
994 | .remove = snd_serial_remove, | 994 | .remove = snd_serial_remove, |
995 | .driver = { | 995 | .driver = { |
996 | .name = SND_SERIAL_DRIVER, | 996 | .name = SND_SERIAL_DRIVER, |
997 | .owner = THIS_MODULE, | ||
998 | }, | 997 | }, |
999 | }; | 998 | }; |
1000 | 999 | ||
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index d28d8706443c..33ef13a72e69 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -143,7 +143,6 @@ static struct platform_driver snd_virmidi_driver = { | |||
143 | .remove = snd_virmidi_remove, | 143 | .remove = snd_virmidi_remove, |
144 | .driver = { | 144 | .driver = { |
145 | .name = SND_VIRMIDI_DRIVER, | 145 | .name = SND_VIRMIDI_DRIVER, |
146 | .owner = THIS_MODULE, | ||
147 | }, | 146 | }, |
148 | }; | 147 | }; |
149 | 148 | ||
diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c index 23441b9e6148..ede449f0b50d 100644 --- a/sound/mips/hal2.c +++ b/sound/mips/hal2.c | |||
@@ -929,7 +929,6 @@ static struct platform_driver hal2_driver = { | |||
929 | .remove = hal2_remove, | 929 | .remove = hal2_remove, |
930 | .driver = { | 930 | .driver = { |
931 | .name = "sgihal2", | 931 | .name = "sgihal2", |
932 | .owner = THIS_MODULE, | ||
933 | } | 932 | } |
934 | }; | 933 | }; |
935 | 934 | ||
diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index 33b08fcc27a9..f07aa3993f83 100644 --- a/sound/mips/sgio2audio.c +++ b/sound/mips/sgio2audio.c | |||
@@ -963,7 +963,6 @@ static struct platform_driver sgio2audio_driver = { | |||
963 | .remove = snd_sgio2audio_remove, | 963 | .remove = snd_sgio2audio_remove, |
964 | .driver = { | 964 | .driver = { |
965 | .name = "sgio2audio", | 965 | .name = "sgio2audio", |
966 | .owner = THIS_MODULE, | ||
967 | } | 966 | } |
968 | }; | 967 | }; |
969 | 968 | ||
diff --git a/sound/oss/dmasound/dmasound_paula.c b/sound/oss/dmasound/dmasound_paula.c index c2d45a5848bc..3f653618614d 100644 --- a/sound/oss/dmasound/dmasound_paula.c +++ b/sound/oss/dmasound/dmasound_paula.c | |||
@@ -729,7 +729,6 @@ static struct platform_driver amiga_audio_driver = { | |||
729 | .remove = __exit_p(amiga_audio_remove), | 729 | .remove = __exit_p(amiga_audio_remove), |
730 | .driver = { | 730 | .driver = { |
731 | .name = "amiga-audio", | 731 | .name = "amiga-audio", |
732 | .owner = THIS_MODULE, | ||
733 | }, | 732 | }, |
734 | }; | 733 | }; |
735 | 734 | ||
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index 8337645aa7a5..8276a743e22e 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c | |||
@@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id) | |||
1676 | u8 sd_status; | 1676 | u8 sd_status; |
1677 | int i; | 1677 | int i; |
1678 | 1678 | ||
1679 | #ifdef CONFIG_PM_RUNTIME | 1679 | #ifdef CONFIG_PM |
1680 | if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) | 1680 | if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) |
1681 | if (!pm_runtime_active(chip->card->dev)) | 1681 | if (!pm_runtime_active(chip->card->dev)) |
1682 | return IRQ_NONE; | 1682 | return IRQ_NONE; |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 5ac0d39d59bc..2bf0b568e3de 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -872,7 +872,7 @@ static int azx_resume(struct device *dev) | |||
872 | } | 872 | } |
873 | #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ | 873 | #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ |
874 | 874 | ||
875 | #ifdef CONFIG_PM_RUNTIME | 875 | #ifdef CONFIG_PM |
876 | static int azx_runtime_suspend(struct device *dev) | 876 | static int azx_runtime_suspend(struct device *dev) |
877 | { | 877 | { |
878 | struct snd_card *card = dev_get_drvdata(dev); | 878 | struct snd_card *card = dev_get_drvdata(dev); |
@@ -970,9 +970,6 @@ static int azx_runtime_idle(struct device *dev) | |||
970 | return 0; | 970 | return 0; |
971 | } | 971 | } |
972 | 972 | ||
973 | #endif /* CONFIG_PM_RUNTIME */ | ||
974 | |||
975 | #ifdef CONFIG_PM | ||
976 | static const struct dev_pm_ops azx_pm = { | 973 | static const struct dev_pm_ops azx_pm = { |
977 | SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) | 974 | SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) |
978 | SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) | 975 | SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) |
diff --git a/sound/ppc/powermac.c b/sound/ppc/powermac.c index 350a7c8f86dd..33c6be9fb388 100644 --- a/sound/ppc/powermac.c +++ b/sound/ppc/powermac.c | |||
@@ -168,7 +168,6 @@ static struct platform_driver snd_pmac_driver = { | |||
168 | .remove = snd_pmac_remove, | 168 | .remove = snd_pmac_remove, |
169 | .driver = { | 169 | .driver = { |
170 | .name = SND_PMAC_DRIVER, | 170 | .name = SND_PMAC_DRIVER, |
171 | .owner = THIS_MODULE, | ||
172 | .pm = SND_PMAC_PM_OPS, | 171 | .pm = SND_PMAC_PM_OPS, |
173 | }, | 172 | }, |
174 | }; | 173 | }; |
diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 47849eaf266d..f44dda610ed2 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c | |||
@@ -652,7 +652,6 @@ static struct platform_driver snd_aica_driver = { | |||
652 | .remove = snd_aica_remove, | 652 | .remove = snd_aica_remove, |
653 | .driver = { | 653 | .driver = { |
654 | .name = SND_AICA_DRIVER, | 654 | .name = SND_AICA_DRIVER, |
655 | .owner = THIS_MODULE, | ||
656 | }, | 655 | }, |
657 | }; | 656 | }; |
658 | 657 | ||
diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c index d1fb74dabbd1..abf9c0cab1e2 100644 --- a/sound/sh/sh_dac_audio.c +++ b/sound/sh/sh_dac_audio.c | |||
@@ -436,7 +436,6 @@ static struct platform_driver sh_dac_driver = { | |||
436 | .remove = snd_sh_dac_remove, | 436 | .remove = snd_sh_dac_remove, |
437 | .driver = { | 437 | .driver = { |
438 | .name = "dac_audio", | 438 | .name = "dac_audio", |
439 | .owner = THIS_MODULE, | ||
440 | }, | 439 | }, |
441 | }; | 440 | }; |
442 | 441 | ||
diff --git a/sound/soc/adi/axi-i2s.c b/sound/soc/adi/axi-i2s.c index 6058c1fd5070..7752860f7230 100644 --- a/sound/soc/adi/axi-i2s.c +++ b/sound/soc/adi/axi-i2s.c | |||
@@ -263,7 +263,6 @@ MODULE_DEVICE_TABLE(of, axi_i2s_of_match); | |||
263 | static struct platform_driver axi_i2s_driver = { | 263 | static struct platform_driver axi_i2s_driver = { |
264 | .driver = { | 264 | .driver = { |
265 | .name = "axi-i2s", | 265 | .name = "axi-i2s", |
266 | .owner = THIS_MODULE, | ||
267 | .of_match_table = axi_i2s_of_match, | 266 | .of_match_table = axi_i2s_of_match, |
268 | }, | 267 | }, |
269 | .probe = axi_i2s_probe, | 268 | .probe = axi_i2s_probe, |
diff --git a/sound/soc/adi/axi-spdif.c b/sound/soc/adi/axi-spdif.c index 198e3a4640f6..d7259d412892 100644 --- a/sound/soc/adi/axi-spdif.c +++ b/sound/soc/adi/axi-spdif.c | |||
@@ -258,7 +258,6 @@ MODULE_DEVICE_TABLE(of, axi_spdif_of_match); | |||
258 | static struct platform_driver axi_spdif_driver = { | 258 | static struct platform_driver axi_spdif_driver = { |
259 | .driver = { | 259 | .driver = { |
260 | .name = "axi-spdif", | 260 | .name = "axi-spdif", |
261 | .owner = THIS_MODULE, | ||
262 | .of_match_table = axi_spdif_of_match, | 261 | .of_match_table = axi_spdif_of_match, |
263 | }, | 262 | }, |
264 | .probe = axi_spdif_probe, | 263 | .probe = axi_spdif_probe, |
diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel/atmel_wm8904.c index 4052268ce462..aa354e1c6ff7 100644 --- a/sound/soc/atmel/atmel_wm8904.c +++ b/sound/soc/atmel/atmel_wm8904.c | |||
@@ -181,7 +181,6 @@ static const struct of_device_id atmel_asoc_wm8904_dt_ids[] = { | |||
181 | static struct platform_driver atmel_asoc_wm8904_driver = { | 181 | static struct platform_driver atmel_asoc_wm8904_driver = { |
182 | .driver = { | 182 | .driver = { |
183 | .name = "atmel-wm8904-audio", | 183 | .name = "atmel-wm8904-audio", |
184 | .owner = THIS_MODULE, | ||
185 | .of_match_table = of_match_ptr(atmel_asoc_wm8904_dt_ids), | 184 | .of_match_table = of_match_ptr(atmel_asoc_wm8904_dt_ids), |
186 | }, | 185 | }, |
187 | .probe = atmel_asoc_wm8904_probe, | 186 | .probe = atmel_asoc_wm8904_probe, |
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index bb1149126c54..66b66d0e7514 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c | |||
@@ -309,7 +309,6 @@ MODULE_DEVICE_TABLE(of, at91sam9g20ek_wm8731_dt_ids); | |||
309 | static struct platform_driver at91sam9g20ek_audio_driver = { | 309 | static struct platform_driver at91sam9g20ek_audio_driver = { |
310 | .driver = { | 310 | .driver = { |
311 | .name = "at91sam9g20ek-audio", | 311 | .name = "at91sam9g20ek-audio", |
312 | .owner = THIS_MODULE, | ||
313 | .of_match_table = of_match_ptr(at91sam9g20ek_wm8731_dt_ids), | 312 | .of_match_table = of_match_ptr(at91sam9g20ek_wm8731_dt_ids), |
314 | }, | 313 | }, |
315 | .probe = at91sam9g20ek_audio_probe, | 314 | .probe = at91sam9g20ek_audio_probe, |
diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c index 3188036a18f0..ccdf547f4d8c 100644 --- a/sound/soc/atmel/sam9x5_wm8731.c +++ b/sound/soc/atmel/sam9x5_wm8731.c | |||
@@ -192,7 +192,6 @@ MODULE_DEVICE_TABLE(of, sam9x5_wm8731_of_match); | |||
192 | static struct platform_driver sam9x5_wm8731_driver = { | 192 | static struct platform_driver sam9x5_wm8731_driver = { |
193 | .driver = { | 193 | .driver = { |
194 | .name = DRV_NAME, | 194 | .name = DRV_NAME, |
195 | .owner = THIS_MODULE, | ||
196 | .of_match_table = of_match_ptr(sam9x5_wm8731_of_match), | 195 | .of_match_table = of_match_ptr(sam9x5_wm8731_of_match), |
197 | }, | 196 | }, |
198 | .probe = sam9x5_wm8731_driver_probe, | 197 | .probe = sam9x5_wm8731_driver_probe, |
diff --git a/sound/soc/au1x/ac97c.c b/sound/soc/au1x/ac97c.c index 5159a50a45a6..29a97d52e8ad 100644 --- a/sound/soc/au1x/ac97c.c +++ b/sound/soc/au1x/ac97c.c | |||
@@ -334,7 +334,6 @@ static const struct dev_pm_ops au1xpscac97_pmops = { | |||
334 | static struct platform_driver au1xac97c_driver = { | 334 | static struct platform_driver au1xac97c_driver = { |
335 | .driver = { | 335 | .driver = { |
336 | .name = "alchemy-ac97c", | 336 | .name = "alchemy-ac97c", |
337 | .owner = THIS_MODULE, | ||
338 | .pm = AU1XPSCAC97_PMOPS, | 337 | .pm = AU1XPSCAC97_PMOPS, |
339 | }, | 338 | }, |
340 | .probe = au1xac97c_drvprobe, | 339 | .probe = au1xac97c_drvprobe, |
diff --git a/sound/soc/au1x/db1000.c b/sound/soc/au1x/db1000.c index 376d976bcc2d..452f404abfd2 100644 --- a/sound/soc/au1x/db1000.c +++ b/sound/soc/au1x/db1000.c | |||
@@ -51,7 +51,6 @@ static int db1000_audio_remove(struct platform_device *pdev) | |||
51 | static struct platform_driver db1000_audio_driver = { | 51 | static struct platform_driver db1000_audio_driver = { |
52 | .driver = { | 52 | .driver = { |
53 | .name = "db1000-audio", | 53 | .name = "db1000-audio", |
54 | .owner = THIS_MODULE, | ||
55 | .pm = &snd_soc_pm_ops, | 54 | .pm = &snd_soc_pm_ops, |
56 | }, | 55 | }, |
57 | .probe = db1000_audio_probe, | 56 | .probe = db1000_audio_probe, |
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c index decba87a074c..a747ac0b399f 100644 --- a/sound/soc/au1x/db1200.c +++ b/sound/soc/au1x/db1200.c | |||
@@ -200,7 +200,6 @@ static int db1200_audio_remove(struct platform_device *pdev) | |||
200 | static struct platform_driver db1200_audio_driver = { | 200 | static struct platform_driver db1200_audio_driver = { |
201 | .driver = { | 201 | .driver = { |
202 | .name = "db1200-ac97", | 202 | .name = "db1200-ac97", |
203 | .owner = THIS_MODULE, | ||
204 | .pm = &snd_soc_pm_ops, | 203 | .pm = &snd_soc_pm_ops, |
205 | }, | 204 | }, |
206 | .id_table = db1200_pids, | 205 | .id_table = db1200_pids, |
diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c index 17a24d804734..b06b8d8128c6 100644 --- a/sound/soc/au1x/dbdma2.c +++ b/sound/soc/au1x/dbdma2.c | |||
@@ -363,7 +363,6 @@ static int au1xpsc_pcm_drvremove(struct platform_device *pdev) | |||
363 | static struct platform_driver au1xpsc_pcm_driver = { | 363 | static struct platform_driver au1xpsc_pcm_driver = { |
364 | .driver = { | 364 | .driver = { |
365 | .name = "au1xpsc-pcm", | 365 | .name = "au1xpsc-pcm", |
366 | .owner = THIS_MODULE, | ||
367 | }, | 366 | }, |
368 | .probe = au1xpsc_pcm_drvprobe, | 367 | .probe = au1xpsc_pcm_drvprobe, |
369 | .remove = au1xpsc_pcm_drvremove, | 368 | .remove = au1xpsc_pcm_drvremove, |
diff --git a/sound/soc/au1x/dma.c b/sound/soc/au1x/dma.c index e920b60bf6c2..6ffaaff469c7 100644 --- a/sound/soc/au1x/dma.c +++ b/sound/soc/au1x/dma.c | |||
@@ -331,7 +331,6 @@ static int alchemy_pcm_drvremove(struct platform_device *pdev) | |||
331 | static struct platform_driver alchemy_pcmdma_driver = { | 331 | static struct platform_driver alchemy_pcmdma_driver = { |
332 | .driver = { | 332 | .driver = { |
333 | .name = "alchemy-pcm-dma", | 333 | .name = "alchemy-pcm-dma", |
334 | .owner = THIS_MODULE, | ||
335 | }, | 334 | }, |
336 | .probe = alchemy_pcm_drvprobe, | 335 | .probe = alchemy_pcm_drvprobe, |
337 | .remove = alchemy_pcm_drvremove, | 336 | .remove = alchemy_pcm_drvremove, |
diff --git a/sound/soc/au1x/i2sc.c b/sound/soc/au1x/i2sc.c index b3f37f6edbcb..450c842c776c 100644 --- a/sound/soc/au1x/i2sc.c +++ b/sound/soc/au1x/i2sc.c | |||
@@ -310,7 +310,6 @@ static const struct dev_pm_ops au1xi2sc_pmops = { | |||
310 | static struct platform_driver au1xi2s_driver = { | 310 | static struct platform_driver au1xi2s_driver = { |
311 | .driver = { | 311 | .driver = { |
312 | .name = "alchemy-i2sc", | 312 | .name = "alchemy-i2sc", |
313 | .owner = THIS_MODULE, | ||
314 | .pm = AU1XI2SC_PMOPS, | 313 | .pm = AU1XI2SC_PMOPS, |
315 | }, | 314 | }, |
316 | .probe = au1xi2s_drvprobe, | 315 | .probe = au1xi2s_drvprobe, |
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c index c6daec98ff89..bb53c7059005 100644 --- a/sound/soc/au1x/psc-ac97.c +++ b/sound/soc/au1x/psc-ac97.c | |||
@@ -490,7 +490,6 @@ static struct dev_pm_ops au1xpscac97_pmops = { | |||
490 | static struct platform_driver au1xpsc_ac97_driver = { | 490 | static struct platform_driver au1xpsc_ac97_driver = { |
491 | .driver = { | 491 | .driver = { |
492 | .name = "au1xpsc_ac97", | 492 | .name = "au1xpsc_ac97", |
493 | .owner = THIS_MODULE, | ||
494 | .pm = AU1XPSCAC97_PMOPS, | 493 | .pm = AU1XPSCAC97_PMOPS, |
495 | }, | 494 | }, |
496 | .probe = au1xpsc_ac97_drvprobe, | 495 | .probe = au1xpsc_ac97_drvprobe, |
diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c index 814beffc56f2..e742ef668496 100644 --- a/sound/soc/au1x/psc-i2s.c +++ b/sound/soc/au1x/psc-i2s.c | |||
@@ -419,7 +419,6 @@ static struct dev_pm_ops au1xpsci2s_pmops = { | |||
419 | static struct platform_driver au1xpsc_i2s_driver = { | 419 | static struct platform_driver au1xpsc_i2s_driver = { |
420 | .driver = { | 420 | .driver = { |
421 | .name = "au1xpsc_i2s", | 421 | .name = "au1xpsc_i2s", |
422 | .owner = THIS_MODULE, | ||
423 | .pm = AU1XPSCI2S_PMOPS, | 422 | .pm = AU1XPSCI2S_PMOPS, |
424 | }, | 423 | }, |
425 | .probe = au1xpsc_i2s_drvprobe, | 424 | .probe = au1xpsc_i2s_drvprobe, |
diff --git a/sound/soc/bcm/bcm2835-i2s.c b/sound/soc/bcm/bcm2835-i2s.c index 2685fe4f8427..03fa1cbf8ec1 100644 --- a/sound/soc/bcm/bcm2835-i2s.c +++ b/sound/soc/bcm/bcm2835-i2s.c | |||
@@ -866,7 +866,6 @@ static struct platform_driver bcm2835_i2s_driver = { | |||
866 | .probe = bcm2835_i2s_probe, | 866 | .probe = bcm2835_i2s_probe, |
867 | .driver = { | 867 | .driver = { |
868 | .name = "bcm2835-i2s", | 868 | .name = "bcm2835-i2s", |
869 | .owner = THIS_MODULE, | ||
870 | .of_match_table = bcm2835_i2s_of_match, | 869 | .of_match_table = bcm2835_i2s_of_match, |
871 | }, | 870 | }, |
872 | }; | 871 | }; |
diff --git a/sound/soc/blackfin/bf5xx-ac97-pcm.c b/sound/soc/blackfin/bf5xx-ac97-pcm.c index cdb8ee75ded9..238913e030e0 100644 --- a/sound/soc/blackfin/bf5xx-ac97-pcm.c +++ b/sound/soc/blackfin/bf5xx-ac97-pcm.c | |||
@@ -462,7 +462,6 @@ static int bf5xx_soc_platform_remove(struct platform_device *pdev) | |||
462 | static struct platform_driver bf5xx_pcm_driver = { | 462 | static struct platform_driver bf5xx_pcm_driver = { |
463 | .driver = { | 463 | .driver = { |
464 | .name = "bfin-ac97-pcm-audio", | 464 | .name = "bfin-ac97-pcm-audio", |
465 | .owner = THIS_MODULE, | ||
466 | }, | 465 | }, |
467 | 466 | ||
468 | .probe = bf5xx_soc_platform_probe, | 467 | .probe = bf5xx_soc_platform_probe, |
diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index 6bf21a6c02e4..a040cfe29fc0 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c | |||
@@ -375,7 +375,6 @@ static int asoc_bfin_ac97_remove(struct platform_device *pdev) | |||
375 | static struct platform_driver asoc_bfin_ac97_driver = { | 375 | static struct platform_driver asoc_bfin_ac97_driver = { |
376 | .driver = { | 376 | .driver = { |
377 | .name = "bfin-ac97", | 377 | .name = "bfin-ac97", |
378 | .owner = THIS_MODULE, | ||
379 | }, | 378 | }, |
380 | 379 | ||
381 | .probe = asoc_bfin_ac97_probe, | 380 | .probe = asoc_bfin_ac97_probe, |
diff --git a/sound/soc/blackfin/bf5xx-ad1836.c b/sound/soc/blackfin/bf5xx-ad1836.c index 8fcfc4ec3a51..5bf1501e5e3c 100644 --- a/sound/soc/blackfin/bf5xx-ad1836.c +++ b/sound/soc/blackfin/bf5xx-ad1836.c | |||
@@ -104,7 +104,6 @@ static int bf5xx_ad1836_driver_remove(struct platform_device *pdev) | |||
104 | static struct platform_driver bf5xx_ad1836_driver = { | 104 | static struct platform_driver bf5xx_ad1836_driver = { |
105 | .driver = { | 105 | .driver = { |
106 | .name = "bfin-snd-ad1836", | 106 | .name = "bfin-snd-ad1836", |
107 | .owner = THIS_MODULE, | ||
108 | .pm = &snd_soc_pm_ops, | 107 | .pm = &snd_soc_pm_ops, |
109 | }, | 108 | }, |
110 | .probe = bf5xx_ad1836_driver_probe, | 109 | .probe = bf5xx_ad1836_driver_probe, |
diff --git a/sound/soc/blackfin/bf5xx-i2s-pcm.c b/sound/soc/blackfin/bf5xx-i2s-pcm.c index bcf591373a7a..d95477afcc67 100644 --- a/sound/soc/blackfin/bf5xx-i2s-pcm.c +++ b/sound/soc/blackfin/bf5xx-i2s-pcm.c | |||
@@ -354,7 +354,6 @@ static int bfin_i2s_soc_platform_remove(struct platform_device *pdev) | |||
354 | static struct platform_driver bfin_i2s_pcm_driver = { | 354 | static struct platform_driver bfin_i2s_pcm_driver = { |
355 | .driver = { | 355 | .driver = { |
356 | .name = "bfin-i2s-pcm-audio", | 356 | .name = "bfin-i2s-pcm-audio", |
357 | .owner = THIS_MODULE, | ||
358 | }, | 357 | }, |
359 | 358 | ||
360 | .probe = bfin_i2s_soc_platform_probe, | 359 | .probe = bfin_i2s_soc_platform_probe, |
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c index 39d774839b3e..b69aeef6418e 100644 --- a/sound/soc/blackfin/bf5xx-i2s.c +++ b/sound/soc/blackfin/bf5xx-i2s.c | |||
@@ -379,7 +379,6 @@ static struct platform_driver bfin_i2s_driver = { | |||
379 | .remove = bf5xx_i2s_remove, | 379 | .remove = bf5xx_i2s_remove, |
380 | .driver = { | 380 | .driver = { |
381 | .name = "bfin-i2s", | 381 | .name = "bfin-i2s", |
382 | .owner = THIS_MODULE, | ||
383 | }, | 382 | }, |
384 | }; | 383 | }; |
385 | 384 | ||
diff --git a/sound/soc/blackfin/bf6xx-i2s.c b/sound/soc/blackfin/bf6xx-i2s.c index 5810a0603f2f..bd3b4d464145 100644 --- a/sound/soc/blackfin/bf6xx-i2s.c +++ b/sound/soc/blackfin/bf6xx-i2s.c | |||
@@ -229,7 +229,6 @@ static struct platform_driver bfin_i2s_driver = { | |||
229 | .remove = bfin_i2s_remove, | 229 | .remove = bfin_i2s_remove, |
230 | .driver = { | 230 | .driver = { |
231 | .name = "bfin-i2s", | 231 | .name = "bfin-i2s", |
232 | .owner = THIS_MODULE, | ||
233 | }, | 232 | }, |
234 | }; | 233 | }; |
235 | 234 | ||
diff --git a/sound/soc/blackfin/bfin-eval-adau1373.c b/sound/soc/blackfin/bfin-eval-adau1373.c index 4ef9683bcad8..523baf5820d7 100644 --- a/sound/soc/blackfin/bfin-eval-adau1373.c +++ b/sound/soc/blackfin/bfin-eval-adau1373.c | |||
@@ -169,7 +169,6 @@ static int bfin_eval_adau1373_remove(struct platform_device *pdev) | |||
169 | static struct platform_driver bfin_eval_adau1373_driver = { | 169 | static struct platform_driver bfin_eval_adau1373_driver = { |
170 | .driver = { | 170 | .driver = { |
171 | .name = "bfin-eval-adau1373", | 171 | .name = "bfin-eval-adau1373", |
172 | .owner = THIS_MODULE, | ||
173 | .pm = &snd_soc_pm_ops, | 172 | .pm = &snd_soc_pm_ops, |
174 | }, | 173 | }, |
175 | .probe = bfin_eval_adau1373_probe, | 174 | .probe = bfin_eval_adau1373_probe, |
diff --git a/sound/soc/blackfin/bfin-eval-adau1701.c b/sound/soc/blackfin/bfin-eval-adau1701.c index 3b55081a96c0..f9e926dfd4ef 100644 --- a/sound/soc/blackfin/bfin-eval-adau1701.c +++ b/sound/soc/blackfin/bfin-eval-adau1701.c | |||
@@ -109,7 +109,6 @@ static int bfin_eval_adau1701_remove(struct platform_device *pdev) | |||
109 | static struct platform_driver bfin_eval_adau1701_driver = { | 109 | static struct platform_driver bfin_eval_adau1701_driver = { |
110 | .driver = { | 110 | .driver = { |
111 | .name = "bfin-eval-adau1701", | 111 | .name = "bfin-eval-adau1701", |
112 | .owner = THIS_MODULE, | ||
113 | .pm = &snd_soc_pm_ops, | 112 | .pm = &snd_soc_pm_ops, |
114 | }, | 113 | }, |
115 | .probe = bfin_eval_adau1701_probe, | 114 | .probe = bfin_eval_adau1701_probe, |
diff --git a/sound/soc/blackfin/bfin-eval-adau1x61.c b/sound/soc/blackfin/bfin-eval-adau1x61.c index 3011906f9d3b..4229f76daec9 100644 --- a/sound/soc/blackfin/bfin-eval-adau1x61.c +++ b/sound/soc/blackfin/bfin-eval-adau1x61.c | |||
@@ -129,7 +129,6 @@ static int bfin_eval_adau1x61_probe(struct platform_device *pdev) | |||
129 | static struct platform_driver bfin_eval_adau1x61_driver = { | 129 | static struct platform_driver bfin_eval_adau1x61_driver = { |
130 | .driver = { | 130 | .driver = { |
131 | .name = "bfin-eval-adau1x61", | 131 | .name = "bfin-eval-adau1x61", |
132 | .owner = THIS_MODULE, | ||
133 | .pm = &snd_soc_pm_ops, | 132 | .pm = &snd_soc_pm_ops, |
134 | }, | 133 | }, |
135 | .probe = bfin_eval_adau1x61_probe, | 134 | .probe = bfin_eval_adau1x61_probe, |
diff --git a/sound/soc/blackfin/bfin-eval-adau1x81.c b/sound/soc/blackfin/bfin-eval-adau1x81.c index 5c380f6aed1a..3e01cbe53fc7 100644 --- a/sound/soc/blackfin/bfin-eval-adau1x81.c +++ b/sound/soc/blackfin/bfin-eval-adau1x81.c | |||
@@ -117,7 +117,6 @@ static int bfin_eval_adau1x81_probe(struct platform_device *pdev) | |||
117 | static struct platform_driver bfin_eval_adau1x81_driver = { | 117 | static struct platform_driver bfin_eval_adau1x81_driver = { |
118 | .driver = { | 118 | .driver = { |
119 | .name = "bfin-eval-adau1x81", | 119 | .name = "bfin-eval-adau1x81", |
120 | .owner = THIS_MODULE, | ||
121 | .pm = &snd_soc_pm_ops, | 120 | .pm = &snd_soc_pm_ops, |
122 | }, | 121 | }, |
123 | .probe = bfin_eval_adau1x81_probe, | 122 | .probe = bfin_eval_adau1x81_probe, |
diff --git a/sound/soc/blackfin/bfin-eval-adav80x.c b/sound/soc/blackfin/bfin-eval-adav80x.c index 3b1b61a44815..27eee66afdb2 100644 --- a/sound/soc/blackfin/bfin-eval-adav80x.c +++ b/sound/soc/blackfin/bfin-eval-adav80x.c | |||
@@ -141,7 +141,6 @@ MODULE_DEVICE_TABLE(platform, bfin_eval_adav80x_ids); | |||
141 | static struct platform_driver bfin_eval_adav80x_driver = { | 141 | static struct platform_driver bfin_eval_adav80x_driver = { |
142 | .driver = { | 142 | .driver = { |
143 | .name = "bfin-eval-adav80x", | 143 | .name = "bfin-eval-adav80x", |
144 | .owner = THIS_MODULE, | ||
145 | .pm = &snd_soc_pm_ops, | 144 | .pm = &snd_soc_pm_ops, |
146 | }, | 145 | }, |
147 | .probe = bfin_eval_adav80x_probe, | 146 | .probe = bfin_eval_adav80x_probe, |
diff --git a/sound/soc/cirrus/edb93xx.c b/sound/soc/cirrus/edb93xx.c index 4f900efc437c..85962657aabe 100644 --- a/sound/soc/cirrus/edb93xx.c +++ b/sound/soc/cirrus/edb93xx.c | |||
@@ -113,7 +113,6 @@ static int edb93xx_remove(struct platform_device *pdev) | |||
113 | static struct platform_driver edb93xx_driver = { | 113 | static struct platform_driver edb93xx_driver = { |
114 | .driver = { | 114 | .driver = { |
115 | .name = "edb93xx-audio", | 115 | .name = "edb93xx-audio", |
116 | .owner = THIS_MODULE, | ||
117 | }, | 116 | }, |
118 | .probe = edb93xx_probe, | 117 | .probe = edb93xx_probe, |
119 | .remove = edb93xx_remove, | 118 | .remove = edb93xx_remove, |
diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc/cirrus/ep93xx-ac97.c index 6b8a366b0211..bbf7a9266a99 100644 --- a/sound/soc/cirrus/ep93xx-ac97.c +++ b/sound/soc/cirrus/ep93xx-ac97.c | |||
@@ -439,7 +439,6 @@ static struct platform_driver ep93xx_ac97_driver = { | |||
439 | .remove = ep93xx_ac97_remove, | 439 | .remove = ep93xx_ac97_remove, |
440 | .driver = { | 440 | .driver = { |
441 | .name = "ep93xx-ac97", | 441 | .name = "ep93xx-ac97", |
442 | .owner = THIS_MODULE, | ||
443 | }, | 442 | }, |
444 | }; | 443 | }; |
445 | 444 | ||
diff --git a/sound/soc/cirrus/ep93xx-i2s.c b/sound/soc/cirrus/ep93xx-i2s.c index 943145f9d1b6..934f8aefdd90 100644 --- a/sound/soc/cirrus/ep93xx-i2s.c +++ b/sound/soc/cirrus/ep93xx-i2s.c | |||
@@ -451,7 +451,6 @@ static struct platform_driver ep93xx_i2s_driver = { | |||
451 | .remove = ep93xx_i2s_remove, | 451 | .remove = ep93xx_i2s_remove, |
452 | .driver = { | 452 | .driver = { |
453 | .name = "ep93xx-i2s", | 453 | .name = "ep93xx-i2s", |
454 | .owner = THIS_MODULE, | ||
455 | }, | 454 | }, |
456 | }; | 455 | }; |
457 | 456 | ||
diff --git a/sound/soc/cirrus/simone.c b/sound/soc/cirrus/simone.c index 822a19a89e74..1ec661834e5a 100644 --- a/sound/soc/cirrus/simone.c +++ b/sound/soc/cirrus/simone.c | |||
@@ -74,7 +74,6 @@ static int simone_remove(struct platform_device *pdev) | |||
74 | static struct platform_driver simone_driver = { | 74 | static struct platform_driver simone_driver = { |
75 | .driver = { | 75 | .driver = { |
76 | .name = "simone-audio", | 76 | .name = "simone-audio", |
77 | .owner = THIS_MODULE, | ||
78 | }, | 77 | }, |
79 | .probe = simone_probe, | 78 | .probe = simone_probe, |
80 | .remove = simone_remove, | 79 | .remove = simone_remove, |
diff --git a/sound/soc/cirrus/snappercl15.c b/sound/soc/cirrus/snappercl15.c index 5b68b106cfc2..98089df08df6 100644 --- a/sound/soc/cirrus/snappercl15.c +++ b/sound/soc/cirrus/snappercl15.c | |||
@@ -123,7 +123,6 @@ static int snappercl15_remove(struct platform_device *pdev) | |||
123 | static struct platform_driver snappercl15_driver = { | 123 | static struct platform_driver snappercl15_driver = { |
124 | .driver = { | 124 | .driver = { |
125 | .name = "snappercl15-audio", | 125 | .name = "snappercl15-audio", |
126 | .owner = THIS_MODULE, | ||
127 | }, | 126 | }, |
128 | .probe = snappercl15_probe, | 127 | .probe = snappercl15_probe, |
129 | .remove = snappercl15_remove, | 128 | .remove = snappercl15_remove, |
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index e88a6b67f781..a2bf27f4baab 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c | |||
@@ -1423,7 +1423,6 @@ static int pm860x_codec_remove(struct platform_device *pdev) | |||
1423 | static struct platform_driver pm860x_codec_driver = { | 1423 | static struct platform_driver pm860x_codec_driver = { |
1424 | .driver = { | 1424 | .driver = { |
1425 | .name = "88pm860x-codec", | 1425 | .name = "88pm860x-codec", |
1426 | .owner = THIS_MODULE, | ||
1427 | }, | 1426 | }, |
1428 | .probe = pm860x_codec_probe, | 1427 | .probe = pm860x_codec_probe, |
1429 | .remove = pm860x_codec_remove, | 1428 | .remove = pm860x_codec_remove, |
diff --git a/sound/soc/codecs/ab8500-codec.c b/sound/soc/codecs/ab8500-codec.c index 7dfbc9921e91..7895689588da 100644 --- a/sound/soc/codecs/ab8500-codec.c +++ b/sound/soc/codecs/ab8500-codec.c | |||
@@ -2609,7 +2609,6 @@ static int ab8500_codec_driver_remove(struct platform_device *pdev) | |||
2609 | static struct platform_driver ab8500_codec_platform_driver = { | 2609 | static struct platform_driver ab8500_codec_platform_driver = { |
2610 | .driver = { | 2610 | .driver = { |
2611 | .name = "ab8500-codec", | 2611 | .name = "ab8500-codec", |
2612 | .owner = THIS_MODULE, | ||
2613 | }, | 2612 | }, |
2614 | .probe = ab8500_codec_driver_probe, | 2613 | .probe = ab8500_codec_driver_probe, |
2615 | .remove = ab8500_codec_driver_remove, | 2614 | .remove = ab8500_codec_driver_remove, |
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index c6e5a313ebf4..d0ac723eee32 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
@@ -142,7 +142,6 @@ static int ac97_remove(struct platform_device *pdev) | |||
142 | static struct platform_driver ac97_codec_driver = { | 142 | static struct platform_driver ac97_codec_driver = { |
143 | .driver = { | 143 | .driver = { |
144 | .name = "ac97-codec", | 144 | .name = "ac97-codec", |
145 | .owner = THIS_MODULE, | ||
146 | }, | 145 | }, |
147 | 146 | ||
148 | .probe = ac97_probe, | 147 | .probe = ac97_probe, |
diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c index 2860eef8610c..3cc69a626454 100644 --- a/sound/soc/codecs/ad1980.c +++ b/sound/soc/codecs/ad1980.c | |||
@@ -334,7 +334,6 @@ static int ad1980_remove(struct platform_device *pdev) | |||
334 | static struct platform_driver ad1980_codec_driver = { | 334 | static struct platform_driver ad1980_codec_driver = { |
335 | .driver = { | 335 | .driver = { |
336 | .name = "ad1980", | 336 | .name = "ad1980", |
337 | .owner = THIS_MODULE, | ||
338 | }, | 337 | }, |
339 | 338 | ||
340 | .probe = ad1980_probe, | 339 | .probe = ad1980_probe, |
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c index 5fac8adbc136..a9400aef60b5 100644 --- a/sound/soc/codecs/ad73311.c +++ b/sound/soc/codecs/ad73311.c | |||
@@ -76,7 +76,6 @@ static int ad73311_remove(struct platform_device *pdev) | |||
76 | static struct platform_driver ad73311_codec_driver = { | 76 | static struct platform_driver ad73311_codec_driver = { |
77 | .driver = { | 77 | .driver = { |
78 | .name = "ad73311", | 78 | .name = "ad73311", |
79 | .owner = THIS_MODULE, | ||
80 | }, | 79 | }, |
81 | 80 | ||
82 | .probe = ad73311_probe, | 81 | .probe = ad73311_probe, |
diff --git a/sound/soc/codecs/ads117x.c b/sound/soc/codecs/ads117x.c index 8f388edff586..1222282e93c3 100644 --- a/sound/soc/codecs/ads117x.c +++ b/sound/soc/codecs/ads117x.c | |||
@@ -78,7 +78,6 @@ static int ads117x_remove(struct platform_device *pdev) | |||
78 | static struct platform_driver ads117x_codec_driver = { | 78 | static struct platform_driver ads117x_codec_driver = { |
79 | .driver = { | 79 | .driver = { |
80 | .name = "ads117x-codec", | 80 | .name = "ads117x-codec", |
81 | .owner = THIS_MODULE, | ||
82 | }, | 81 | }, |
83 | 82 | ||
84 | .probe = ads117x_probe, | 83 | .probe = ads117x_probe, |
diff --git a/sound/soc/codecs/ak4554.c b/sound/soc/codecs/ak4554.c index 79e9555766c0..16ce9f9fefa1 100644 --- a/sound/soc/codecs/ak4554.c +++ b/sound/soc/codecs/ak4554.c | |||
@@ -93,7 +93,6 @@ MODULE_DEVICE_TABLE(of, ak4554_of_match); | |||
93 | static struct platform_driver ak4554_driver = { | 93 | static struct platform_driver ak4554_driver = { |
94 | .driver = { | 94 | .driver = { |
95 | .name = "ak4554-adc-dac", | 95 | .name = "ak4554-adc-dac", |
96 | .owner = THIS_MODULE, | ||
97 | .of_match_table = ak4554_of_match, | 96 | .of_match_table = ak4554_of_match, |
98 | }, | 97 | }, |
99 | .probe = ak4554_soc_probe, | 98 | .probe = ak4554_soc_probe, |
diff --git a/sound/soc/codecs/ak5386.c b/sound/soc/codecs/ak5386.c index 8107a1cac876..afa95360826d 100644 --- a/sound/soc/codecs/ak5386.c +++ b/sound/soc/codecs/ak5386.c | |||
@@ -205,7 +205,6 @@ static struct platform_driver ak5386_driver = { | |||
205 | .remove = ak5386_remove, | 205 | .remove = ak5386_remove, |
206 | .driver = { | 206 | .driver = { |
207 | .name = "ak5386", | 207 | .name = "ak5386", |
208 | .owner = THIS_MODULE, | ||
209 | .of_match_table = of_match_ptr(ak5386_dt_ids), | 208 | .of_match_table = of_match_ptr(ak5386_dt_ids), |
210 | }, | 209 | }, |
211 | }; | 210 | }; |
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c index c4cf0699e77f..5075bf0a7276 100644 --- a/sound/soc/codecs/bt-sco.c +++ b/sound/soc/codecs/bt-sco.c | |||
@@ -77,7 +77,6 @@ MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids); | |||
77 | static struct platform_driver bt_sco_driver = { | 77 | static struct platform_driver bt_sco_driver = { |
78 | .driver = { | 78 | .driver = { |
79 | .name = "bt-sco", | 79 | .name = "bt-sco", |
80 | .owner = THIS_MODULE, | ||
81 | }, | 80 | }, |
82 | .probe = bt_sco_probe, | 81 | .probe = bt_sco_probe, |
83 | .remove = bt_sco_remove, | 82 | .remove = bt_sco_remove, |
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c index 8d638e8aa8eb..d6dedd4eab29 100644 --- a/sound/soc/codecs/cq93vc.c +++ b/sound/soc/codecs/cq93vc.c | |||
@@ -151,7 +151,6 @@ static int cq93vc_platform_remove(struct platform_device *pdev) | |||
151 | static struct platform_driver cq93vc_codec_driver = { | 151 | static struct platform_driver cq93vc_codec_driver = { |
152 | .driver = { | 152 | .driver = { |
153 | .name = "cq93vc-codec", | 153 | .name = "cq93vc-codec", |
154 | .owner = THIS_MODULE, | ||
155 | }, | 154 | }, |
156 | 155 | ||
157 | .probe = cq93vc_platform_probe, | 156 | .probe = cq93vc_platform_probe, |
diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c index c125925da92e..ec55c590afd0 100644 --- a/sound/soc/codecs/cs35l32.c +++ b/sound/soc/codecs/cs35l32.c | |||
@@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c_client *i2c_client) | |||
550 | return 0; | 550 | return 0; |
551 | } | 551 | } |
552 | 552 | ||
553 | #ifdef CONFIG_PM_RUNTIME | 553 | #ifdef CONFIG_PM |
554 | static int cs35l32_runtime_suspend(struct device *dev) | 554 | static int cs35l32_runtime_suspend(struct device *dev) |
555 | { | 555 | { |
556 | struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); | 556 | struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c index 02b1520ae0bc..670ebfe12903 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c | |||
@@ -537,7 +537,7 @@ err_enable: | |||
537 | } | 537 | } |
538 | EXPORT_SYMBOL_GPL(cs42xx8_probe); | 538 | EXPORT_SYMBOL_GPL(cs42xx8_probe); |
539 | 539 | ||
540 | #ifdef CONFIG_PM_RUNTIME | 540 | #ifdef CONFIG_PM |
541 | static int cs42xx8_runtime_resume(struct device *dev) | 541 | static int cs42xx8_runtime_resume(struct device *dev) |
542 | { | 542 | { |
543 | struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); | 543 | struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c index 8f95b0300f1a..0b10979513c4 100644 --- a/sound/soc/codecs/cx20442.c +++ b/sound/soc/codecs/cx20442.c | |||
@@ -429,7 +429,6 @@ static int __exit cx20442_platform_remove(struct platform_device *pdev) | |||
429 | static struct platform_driver cx20442_platform_driver = { | 429 | static struct platform_driver cx20442_platform_driver = { |
430 | .driver = { | 430 | .driver = { |
431 | .name = "cx20442-codec", | 431 | .name = "cx20442-codec", |
432 | .owner = THIS_MODULE, | ||
433 | }, | 432 | }, |
434 | .probe = cx20442_platform_probe, | 433 | .probe = cx20442_platform_probe, |
435 | .remove = __exit_p(cx20442_platform_remove), | 434 | .remove = __exit_p(cx20442_platform_remove), |
diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c index b2090b2a5e2d..fde53251c047 100644 --- a/sound/soc/codecs/dmic.c +++ b/sound/soc/codecs/dmic.c | |||
@@ -74,7 +74,6 @@ MODULE_ALIAS("platform:dmic-codec"); | |||
74 | static struct platform_driver dmic_driver = { | 74 | static struct platform_driver dmic_driver = { |
75 | .driver = { | 75 | .driver = { |
76 | .name = "dmic-codec", | 76 | .name = "dmic-codec", |
77 | .owner = THIS_MODULE, | ||
78 | }, | 77 | }, |
79 | .probe = dmic_dev_probe, | 78 | .probe = dmic_dev_probe, |
80 | .remove = dmic_dev_remove, | 79 | .remove = dmic_dev_remove, |
diff --git a/sound/soc/codecs/hdmi.c b/sound/soc/codecs/hdmi.c index 1391ad50f95d..bd42ad34e004 100644 --- a/sound/soc/codecs/hdmi.c +++ b/sound/soc/codecs/hdmi.c | |||
@@ -94,7 +94,6 @@ static int hdmi_codec_remove(struct platform_device *pdev) | |||
94 | static struct platform_driver hdmi_codec_driver = { | 94 | static struct platform_driver hdmi_codec_driver = { |
95 | .driver = { | 95 | .driver = { |
96 | .name = DRV_NAME, | 96 | .name = DRV_NAME, |
97 | .owner = THIS_MODULE, | ||
98 | .of_match_table = of_match_ptr(hdmi_audio_codec_ids), | 97 | .of_match_table = of_match_ptr(hdmi_audio_codec_ids), |
99 | }, | 98 | }, |
100 | 99 | ||
diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index df7c01cf7072..933f4476d76c 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c | |||
@@ -364,7 +364,6 @@ static struct platform_driver jz4740_codec_driver = { | |||
364 | .remove = jz4740_codec_remove, | 364 | .remove = jz4740_codec_remove, |
365 | .driver = { | 365 | .driver = { |
366 | .name = "jz4740-codec", | 366 | .name = "jz4740-codec", |
367 | .owner = THIS_MODULE, | ||
368 | }, | 367 | }, |
369 | }; | 368 | }; |
370 | 369 | ||
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 151f718241ea..b112b1c2c394 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c | |||
@@ -2611,7 +2611,7 @@ static int max98090_i2c_remove(struct i2c_client *client) | |||
2611 | return 0; | 2611 | return 0; |
2612 | } | 2612 | } |
2613 | 2613 | ||
2614 | #ifdef CONFIG_PM_RUNTIME | 2614 | #ifdef CONFIG_PM |
2615 | static int max98090_runtime_resume(struct device *dev) | 2615 | static int max98090_runtime_resume(struct device *dev) |
2616 | { | 2616 | { |
2617 | struct max98090_priv *max98090 = dev_get_drvdata(dev); | 2617 | struct max98090_priv *max98090 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c index 71f775aad7c7..c1e441c2c8af 100644 --- a/sound/soc/codecs/mc13783.c +++ b/sound/soc/codecs/mc13783.c | |||
@@ -802,7 +802,6 @@ static int mc13783_codec_remove(struct platform_device *pdev) | |||
802 | static struct platform_driver mc13783_codec_driver = { | 802 | static struct platform_driver mc13783_codec_driver = { |
803 | .driver = { | 803 | .driver = { |
804 | .name = "mc13783-codec", | 804 | .name = "mc13783-codec", |
805 | .owner = THIS_MODULE, | ||
806 | }, | 805 | }, |
807 | .remove = mc13783_codec_remove, | 806 | .remove = mc13783_codec_remove, |
808 | }; | 807 | }; |
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c index b6618c4a7597..7e73fa4b3183 100644 --- a/sound/soc/codecs/pcm3008.c +++ b/sound/soc/codecs/pcm3008.c | |||
@@ -162,7 +162,6 @@ static struct platform_driver pcm3008_codec_driver = { | |||
162 | .remove = pcm3008_codec_remove, | 162 | .remove = pcm3008_codec_remove, |
163 | .driver = { | 163 | .driver = { |
164 | .name = "pcm3008-codec", | 164 | .name = "pcm3008-codec", |
165 | .owner = THIS_MODULE, | ||
166 | }, | 165 | }, |
167 | }; | 166 | }; |
168 | 167 | ||
diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 0c8aefab404c..e5f2fb884bf3 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc/codecs/pcm512x.c | |||
@@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev) | |||
517 | } | 517 | } |
518 | EXPORT_SYMBOL_GPL(pcm512x_remove); | 518 | EXPORT_SYMBOL_GPL(pcm512x_remove); |
519 | 519 | ||
520 | #ifdef CONFIG_PM_RUNTIME | 520 | #ifdef CONFIG_PM |
521 | static int pcm512x_suspend(struct device *dev) | 521 | static int pcm512x_suspend(struct device *dev) |
522 | { | 522 | { |
523 | struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); | 523 | struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/si476x.c b/sound/soc/codecs/si476x.c index cdf882fa7716..3e72964280c6 100644 --- a/sound/soc/codecs/si476x.c +++ b/sound/soc/codecs/si476x.c | |||
@@ -261,7 +261,6 @@ MODULE_ALIAS("platform:si476x-codec"); | |||
261 | static struct platform_driver si476x_platform_driver = { | 261 | static struct platform_driver si476x_platform_driver = { |
262 | .driver = { | 262 | .driver = { |
263 | .name = "si476x-codec", | 263 | .name = "si476x-codec", |
264 | .owner = THIS_MODULE, | ||
265 | }, | 264 | }, |
266 | .probe = si476x_platform_probe, | 265 | .probe = si476x_platform_probe, |
267 | .remove = si476x_platform_remove, | 266 | .remove = si476x_platform_remove, |
diff --git a/sound/soc/codecs/sirf-audio-codec.c b/sound/soc/codecs/sirf-audio-codec.c index 07eea20e6645..0a8e43c98a07 100644 --- a/sound/soc/codecs/sirf-audio-codec.c +++ b/sound/soc/codecs/sirf-audio-codec.c | |||
@@ -567,7 +567,6 @@ static const struct dev_pm_ops sirf_audio_codec_pm_ops = { | |||
567 | static struct platform_driver sirf_audio_codec_driver = { | 567 | static struct platform_driver sirf_audio_codec_driver = { |
568 | .driver = { | 568 | .driver = { |
569 | .name = "sirf-audio-codec", | 569 | .name = "sirf-audio-codec", |
570 | .owner = THIS_MODULE, | ||
571 | .of_match_table = sirf_audio_codec_of_match, | 570 | .of_match_table = sirf_audio_codec_of_match, |
572 | .pm = &sirf_audio_codec_pm_ops, | 571 | .pm = &sirf_audio_codec_pm_ops, |
573 | }, | 572 | }, |
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c index 31d97cd5e59b..1f451a1946eb 100644 --- a/sound/soc/codecs/sn95031.c +++ b/sound/soc/codecs/sn95031.c | |||
@@ -907,7 +907,6 @@ static int sn95031_device_remove(struct platform_device *pdev) | |||
907 | static struct platform_driver sn95031_codec_driver = { | 907 | static struct platform_driver sn95031_codec_driver = { |
908 | .driver = { | 908 | .driver = { |
909 | .name = "sn95031", | 909 | .name = "sn95031", |
910 | .owner = THIS_MODULE, | ||
911 | }, | 910 | }, |
912 | .probe = sn95031_device_probe, | 911 | .probe = sn95031_device_probe, |
913 | .remove = sn95031_device_remove, | 912 | .remove = sn95031_device_remove, |
diff --git a/sound/soc/codecs/spdif_receiver.c b/sound/soc/codecs/spdif_receiver.c index e3501f40c7b3..3ec41ccbf4e2 100644 --- a/sound/soc/codecs/spdif_receiver.c +++ b/sound/soc/codecs/spdif_receiver.c | |||
@@ -80,7 +80,6 @@ static struct platform_driver spdif_dir_driver = { | |||
80 | .remove = spdif_dir_remove, | 80 | .remove = spdif_dir_remove, |
81 | .driver = { | 81 | .driver = { |
82 | .name = "spdif-dir", | 82 | .name = "spdif-dir", |
83 | .owner = THIS_MODULE, | ||
84 | .of_match_table = of_match_ptr(spdif_dir_dt_ids), | 83 | .of_match_table = of_match_ptr(spdif_dir_dt_ids), |
85 | }, | 84 | }, |
86 | }; | 85 | }; |
diff --git a/sound/soc/codecs/spdif_transmitter.c b/sound/soc/codecs/spdif_transmitter.c index e0df537dd4b7..ef634a9ad673 100644 --- a/sound/soc/codecs/spdif_transmitter.c +++ b/sound/soc/codecs/spdif_transmitter.c | |||
@@ -80,7 +80,6 @@ static struct platform_driver spdif_dit_driver = { | |||
80 | .remove = spdif_dit_remove, | 80 | .remove = spdif_dit_remove, |
81 | .driver = { | 81 | .driver = { |
82 | .name = DRV_NAME, | 82 | .name = DRV_NAME, |
83 | .owner = THIS_MODULE, | ||
84 | .of_match_table = of_match_ptr(spdif_dit_dt_ids), | 83 | .of_match_table = of_match_ptr(spdif_dit_dt_ids), |
85 | }, | 84 | }, |
86 | }; | 85 | }; |
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index dbff0c89be48..6464caf72b21 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c | |||
@@ -394,7 +394,6 @@ static int stac9766_remove(struct platform_device *pdev) | |||
394 | static struct platform_driver stac9766_codec_driver = { | 394 | static struct platform_driver stac9766_codec_driver = { |
395 | .driver = { | 395 | .driver = { |
396 | .name = "stac9766-codec", | 396 | .name = "stac9766-codec", |
397 | .owner = THIS_MODULE, | ||
398 | }, | 397 | }, |
399 | 398 | ||
400 | .probe = stac9766_probe, | 399 | .probe = stac9766_probe, |
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index b505212019e2..ae23acdd2708 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c | |||
@@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route tas2552_audio_map[] = { | |||
115 | {"ClassD", NULL, "PLL"}, | 115 | {"ClassD", NULL, "PLL"}, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | #ifdef CONFIG_PM_RUNTIME | 118 | #ifdef CONFIG_PM |
119 | static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) | 119 | static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) |
120 | { | 120 | { |
121 | u8 cfg1_reg; | 121 | u8 cfg1_reg; |
@@ -264,7 +264,7 @@ static int tas2552_mute(struct snd_soc_dai *dai, int mute) | |||
264 | return 0; | 264 | return 0; |
265 | } | 265 | } |
266 | 266 | ||
267 | #ifdef CONFIG_PM_RUNTIME | 267 | #ifdef CONFIG_PM |
268 | static int tas2552_runtime_suspend(struct device *dev) | 268 | static int tas2552_runtime_suspend(struct device *dev) |
269 | { | 269 | { |
270 | struct tas2552_data *tas2552 = dev_get_drvdata(dev); | 270 | struct tas2552_data *tas2552 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 27f3b21effb2..44af3188afb9 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -2218,7 +2218,6 @@ static struct platform_driver twl4030_codec_driver = { | |||
2218 | .remove = twl4030_codec_remove, | 2218 | .remove = twl4030_codec_remove, |
2219 | .driver = { | 2219 | .driver = { |
2220 | .name = "twl4030-codec", | 2220 | .name = "twl4030-codec", |
2221 | .owner = THIS_MODULE, | ||
2222 | }, | 2221 | }, |
2223 | }; | 2222 | }; |
2224 | 2223 | ||
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index 5ff2b1e4638e..90f47f988b3f 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -1177,7 +1177,6 @@ static int twl6040_codec_remove(struct platform_device *pdev) | |||
1177 | static struct platform_driver twl6040_codec_driver = { | 1177 | static struct platform_driver twl6040_codec_driver = { |
1178 | .driver = { | 1178 | .driver = { |
1179 | .name = "twl6040-codec", | 1179 | .name = "twl6040-codec", |
1180 | .owner = THIS_MODULE, | ||
1181 | }, | 1180 | }, |
1182 | .probe = twl6040_codec_probe, | 1181 | .probe = twl6040_codec_probe, |
1183 | .remove = twl6040_codec_remove, | 1182 | .remove = twl6040_codec_remove, |
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c index 4056260a502e..f883308c00de 100644 --- a/sound/soc/codecs/uda134x.c +++ b/sound/soc/codecs/uda134x.c | |||
@@ -605,7 +605,6 @@ static int uda134x_codec_remove(struct platform_device *pdev) | |||
605 | static struct platform_driver uda134x_codec_driver = { | 605 | static struct platform_driver uda134x_codec_driver = { |
606 | .driver = { | 606 | .driver = { |
607 | .name = "uda134x-codec", | 607 | .name = "uda134x-codec", |
608 | .owner = THIS_MODULE, | ||
609 | }, | 608 | }, |
610 | .probe = uda134x_codec_probe, | 609 | .probe = uda134x_codec_probe, |
611 | .remove = uda134x_codec_remove, | 610 | .remove = uda134x_codec_remove, |
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 00aea4100bb3..80fb1dc81f6c 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
@@ -511,7 +511,6 @@ MODULE_ALIAS("platform:wl1273-codec"); | |||
511 | static struct platform_driver wl1273_platform_driver = { | 511 | static struct platform_driver wl1273_platform_driver = { |
512 | .driver = { | 512 | .driver = { |
513 | .name = "wl1273-codec", | 513 | .name = "wl1273-codec", |
514 | .owner = THIS_MODULE, | ||
515 | }, | 514 | }, |
516 | .probe = wl1273_platform_probe, | 515 | .probe = wl1273_platform_probe, |
517 | .remove = wl1273_platform_remove, | 516 | .remove = wl1273_platform_remove, |
diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c index cdea9d9c1631..15599845a660 100644 --- a/sound/soc/codecs/wm2200.c +++ b/sound/soc/codecs/wm2200.c | |||
@@ -2440,7 +2440,7 @@ static int wm2200_i2c_remove(struct i2c_client *i2c) | |||
2440 | return 0; | 2440 | return 0; |
2441 | } | 2441 | } |
2442 | 2442 | ||
2443 | #ifdef CONFIG_PM_RUNTIME | 2443 | #ifdef CONFIG_PM |
2444 | static int wm2200_runtime_suspend(struct device *dev) | 2444 | static int wm2200_runtime_suspend(struct device *dev) |
2445 | { | 2445 | { |
2446 | struct wm2200_priv *wm2200 = dev_get_drvdata(dev); | 2446 | struct wm2200_priv *wm2200 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index a01ad629ed61..b80970dc2d2f 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c | |||
@@ -2664,7 +2664,7 @@ static int wm5100_i2c_remove(struct i2c_client *i2c) | |||
2664 | return 0; | 2664 | return 0; |
2665 | } | 2665 | } |
2666 | 2666 | ||
2667 | #ifdef CONFIG_PM_RUNTIME | 2667 | #ifdef CONFIG_PM |
2668 | static int wm5100_runtime_suspend(struct device *dev) | 2668 | static int wm5100_runtime_suspend(struct device *dev) |
2669 | { | 2669 | { |
2670 | struct wm5100_priv *wm5100 = dev_get_drvdata(dev); | 2670 | struct wm5100_priv *wm5100 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index d78fb8dffc8c..f439ae052128 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c | |||
@@ -1960,7 +1960,6 @@ static int wm5102_remove(struct platform_device *pdev) | |||
1960 | static struct platform_driver wm5102_codec_driver = { | 1960 | static struct platform_driver wm5102_codec_driver = { |
1961 | .driver = { | 1961 | .driver = { |
1962 | .name = "wm5102-codec", | 1962 | .name = "wm5102-codec", |
1963 | .owner = THIS_MODULE, | ||
1964 | }, | 1963 | }, |
1965 | .probe = wm5102_probe, | 1964 | .probe = wm5102_probe, |
1966 | .remove = wm5102_remove, | 1965 | .remove = wm5102_remove, |
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c index 2f2ec26d831c..4456b38a3ef5 100644 --- a/sound/soc/codecs/wm5110.c +++ b/sound/soc/codecs/wm5110.c | |||
@@ -1738,7 +1738,6 @@ static int wm5110_remove(struct platform_device *pdev) | |||
1738 | static struct platform_driver wm5110_codec_driver = { | 1738 | static struct platform_driver wm5110_codec_driver = { |
1739 | .driver = { | 1739 | .driver = { |
1740 | .name = "wm5110-codec", | 1740 | .name = "wm5110-codec", |
1741 | .owner = THIS_MODULE, | ||
1742 | }, | 1741 | }, |
1743 | .probe = wm5110_probe, | 1742 | .probe = wm5110_probe, |
1744 | .remove = wm5110_remove, | 1743 | .remove = wm5110_remove, |
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 87f664b9cc7d..574579b98872 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -1622,7 +1622,6 @@ static int wm8350_remove(struct platform_device *pdev) | |||
1622 | static struct platform_driver wm8350_codec_driver = { | 1622 | static struct platform_driver wm8350_codec_driver = { |
1623 | .driver = { | 1623 | .driver = { |
1624 | .name = "wm8350-codec", | 1624 | .name = "wm8350-codec", |
1625 | .owner = THIS_MODULE, | ||
1626 | }, | 1625 | }, |
1627 | .probe = wm8350_probe, | 1626 | .probe = wm8350_probe, |
1628 | .remove = wm8350_remove, | 1627 | .remove = wm8350_remove, |
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index 385894f6e264..8ee446987aa9 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
@@ -1365,7 +1365,6 @@ static int wm8400_remove(struct platform_device *pdev) | |||
1365 | static struct platform_driver wm8400_codec_driver = { | 1365 | static struct platform_driver wm8400_codec_driver = { |
1366 | .driver = { | 1366 | .driver = { |
1367 | .name = "wm8400-codec", | 1367 | .name = "wm8400-codec", |
1368 | .owner = THIS_MODULE, | ||
1369 | }, | 1368 | }, |
1370 | .probe = wm8400_probe, | 1369 | .probe = wm8400_probe, |
1371 | .remove = wm8400_remove, | 1370 | .remove = wm8400_remove, |
diff --git a/sound/soc/codecs/wm8727.c b/sound/soc/codecs/wm8727.c index 7b1a6d5c11c6..bb25a75f92a2 100644 --- a/sound/soc/codecs/wm8727.c +++ b/sound/soc/codecs/wm8727.c | |||
@@ -75,7 +75,6 @@ static int wm8727_remove(struct platform_device *pdev) | |||
75 | static struct platform_driver wm8727_codec_driver = { | 75 | static struct platform_driver wm8727_codec_driver = { |
76 | .driver = { | 76 | .driver = { |
77 | .name = "wm8727", | 77 | .name = "wm8727", |
78 | .owner = THIS_MODULE, | ||
79 | }, | 78 | }, |
80 | 79 | ||
81 | .probe = wm8727_probe, | 80 | .probe = wm8727_probe, |
diff --git a/sound/soc/codecs/wm8782.c b/sound/soc/codecs/wm8782.c index 8092495605ce..fb55fd845d27 100644 --- a/sound/soc/codecs/wm8782.c +++ b/sound/soc/codecs/wm8782.c | |||
@@ -72,7 +72,6 @@ static int wm8782_remove(struct platform_device *pdev) | |||
72 | static struct platform_driver wm8782_codec_driver = { | 72 | static struct platform_driver wm8782_codec_driver = { |
73 | .driver = { | 73 | .driver = { |
74 | .name = "wm8782", | 74 | .name = "wm8782", |
75 | .owner = THIS_MODULE, | ||
76 | }, | 75 | }, |
77 | .probe = wm8782_probe, | 76 | .probe = wm8782_probe, |
78 | .remove = wm8782_remove, | 77 | .remove = wm8782_remove, |
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 1534d88a66e9..d32d554f5b34 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3785,7 +3785,7 @@ static int wm8962_i2c_remove(struct i2c_client *client) | |||
3785 | return 0; | 3785 | return 0; |
3786 | } | 3786 | } |
3787 | 3787 | ||
3788 | #ifdef CONFIG_PM_RUNTIME | 3788 | #ifdef CONFIG_PM |
3789 | static int wm8962_runtime_resume(struct device *dev) | 3789 | static int wm8962_runtime_resume(struct device *dev) |
3790 | { | 3790 | { |
3791 | struct wm8962_priv *wm8962 = dev_get_drvdata(dev); | 3791 | struct wm8962_priv *wm8962 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 36b767fa37a6..1b97de2e4e67 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -4508,7 +4508,6 @@ static const struct dev_pm_ops wm8994_pm_ops = { | |||
4508 | static struct platform_driver wm8994_codec_driver = { | 4508 | static struct platform_driver wm8994_codec_driver = { |
4509 | .driver = { | 4509 | .driver = { |
4510 | .name = "wm8994-codec", | 4510 | .name = "wm8994-codec", |
4511 | .owner = THIS_MODULE, | ||
4512 | .pm = &wm8994_pm_ops, | 4511 | .pm = &wm8994_pm_ops, |
4513 | }, | 4512 | }, |
4514 | .probe = wm8994_probe, | 4513 | .probe = wm8994_probe, |
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index ab33fe596519..7e8bfe27566b 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c | |||
@@ -1165,7 +1165,6 @@ static int wm8997_remove(struct platform_device *pdev) | |||
1165 | static struct platform_driver wm8997_codec_driver = { | 1165 | static struct platform_driver wm8997_codec_driver = { |
1166 | .driver = { | 1166 | .driver = { |
1167 | .name = "wm8997-codec", | 1167 | .name = "wm8997-codec", |
1168 | .owner = THIS_MODULE, | ||
1169 | }, | 1168 | }, |
1170 | .probe = wm8997_probe, | 1169 | .probe = wm8997_probe, |
1171 | .remove = wm8997_remove, | 1170 | .remove = wm8997_remove, |
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index d3a800fa6f06..3eddb18fefd1 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -407,7 +407,6 @@ static int wm9705_remove(struct platform_device *pdev) | |||
407 | static struct platform_driver wm9705_codec_driver = { | 407 | static struct platform_driver wm9705_codec_driver = { |
408 | .driver = { | 408 | .driver = { |
409 | .name = "wm9705-codec", | 409 | .name = "wm9705-codec", |
410 | .owner = THIS_MODULE, | ||
411 | }, | 410 | }, |
412 | 411 | ||
413 | .probe = wm9705_probe, | 412 | .probe = wm9705_probe, |
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 7c45971bb4ec..e04643d2bb24 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
@@ -741,7 +741,6 @@ static int wm9712_remove(struct platform_device *pdev) | |||
741 | static struct platform_driver wm9712_codec_driver = { | 741 | static struct platform_driver wm9712_codec_driver = { |
742 | .driver = { | 742 | .driver = { |
743 | .name = "wm9712-codec", | 743 | .name = "wm9712-codec", |
744 | .owner = THIS_MODULE, | ||
745 | }, | 744 | }, |
746 | 745 | ||
747 | .probe = wm9712_probe, | 746 | .probe = wm9712_probe, |
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 5df7f6d12bef..71b9d5b0734d 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c | |||
@@ -1301,7 +1301,6 @@ static int wm9713_remove(struct platform_device *pdev) | |||
1301 | static struct platform_driver wm9713_codec_driver = { | 1301 | static struct platform_driver wm9713_codec_driver = { |
1302 | .driver = { | 1302 | .driver = { |
1303 | .name = "wm9713-codec", | 1303 | .name = "wm9713-codec", |
1304 | .owner = THIS_MODULE, | ||
1305 | }, | 1304 | }, |
1306 | 1305 | ||
1307 | .probe = wm9713_probe, | 1306 | .probe = wm9713_probe, |
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index a50010e2891f..158cb3d1db70 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -445,7 +445,6 @@ static struct platform_driver davinci_evm_driver = { | |||
445 | .remove = davinci_evm_remove, | 445 | .remove = davinci_evm_remove, |
446 | .driver = { | 446 | .driver = { |
447 | .name = "davinci_evm", | 447 | .name = "davinci_evm", |
448 | .owner = THIS_MODULE, | ||
449 | .pm = &snd_soc_pm_ops, | 448 | .pm = &snd_soc_pm_ops, |
450 | .of_match_table = of_match_ptr(davinci_evm_dt_ids), | 449 | .of_match_table = of_match_ptr(davinci_evm_dt_ids), |
451 | }, | 450 | }, |
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index 7682af31d6e6..15fb28fc8e1b 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c | |||
@@ -770,7 +770,6 @@ static struct platform_driver davinci_mcbsp_driver = { | |||
770 | .remove = davinci_i2s_remove, | 770 | .remove = davinci_i2s_remove, |
771 | .driver = { | 771 | .driver = { |
772 | .name = "davinci-mcbsp", | 772 | .name = "davinci-mcbsp", |
773 | .owner = THIS_MODULE, | ||
774 | }, | 773 | }, |
775 | }; | 774 | }; |
776 | 775 | ||
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 0dab382ba147..30b94d4f9c5d 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -1602,7 +1602,6 @@ static struct platform_driver davinci_mcasp_driver = { | |||
1602 | .remove = davinci_mcasp_remove, | 1602 | .remove = davinci_mcasp_remove, |
1603 | .driver = { | 1603 | .driver = { |
1604 | .name = "davinci-mcasp", | 1604 | .name = "davinci-mcasp", |
1605 | .owner = THIS_MODULE, | ||
1606 | .of_match_table = mcasp_dt_ids, | 1605 | .of_match_table = mcasp_dt_ids, |
1607 | }, | 1606 | }, |
1608 | }; | 1607 | }; |
diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c index 77aef05588c3..5bee04279ebe 100644 --- a/sound/soc/davinci/davinci-vcif.c +++ b/sound/soc/davinci/davinci-vcif.c | |||
@@ -267,7 +267,6 @@ static struct platform_driver davinci_vcif_driver = { | |||
267 | .remove = davinci_vcif_remove, | 267 | .remove = davinci_vcif_remove, |
268 | .driver = { | 268 | .driver = { |
269 | .name = "davinci-vcif", | 269 | .name = "davinci-vcif", |
270 | .owner = THIS_MODULE, | ||
271 | }, | 270 | }, |
272 | }; | 271 | }; |
273 | 272 | ||
diff --git a/sound/soc/dwc/designware_i2s.c b/sound/soc/dwc/designware_i2s.c index 08f0229f8d68..b93168d4f648 100644 --- a/sound/soc/dwc/designware_i2s.c +++ b/sound/soc/dwc/designware_i2s.c | |||
@@ -441,7 +441,6 @@ static struct platform_driver dw_i2s_driver = { | |||
441 | .remove = dw_i2s_remove, | 441 | .remove = dw_i2s_remove, |
442 | .driver = { | 442 | .driver = { |
443 | .name = "designware-i2s", | 443 | .name = "designware-i2s", |
444 | .owner = THIS_MODULE, | ||
445 | }, | 444 | }, |
446 | }; | 445 | }; |
447 | 446 | ||
diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c index b175b0145a42..9ce70fc67b09 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c | |||
@@ -238,7 +238,6 @@ MODULE_DEVICE_TABLE(of, imx_tlv320_dt_ids); | |||
238 | static struct platform_driver eukrea_tlv320_driver = { | 238 | static struct platform_driver eukrea_tlv320_driver = { |
239 | .driver = { | 239 | .driver = { |
240 | .name = "eukrea_tlv320", | 240 | .name = "eukrea_tlv320", |
241 | .owner = THIS_MODULE, | ||
242 | .of_match_table = imx_tlv320_dt_ids, | 241 | .of_match_table = imx_tlv320_dt_ids, |
243 | }, | 242 | }, |
244 | .probe = eukrea_tlv320_probe, | 243 | .probe = eukrea_tlv320_probe, |
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 9deabdd2b1a2..026a80117540 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c | |||
@@ -928,7 +928,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) | |||
928 | return 0; | 928 | return 0; |
929 | } | 929 | } |
930 | 930 | ||
931 | #ifdef CONFIG_PM_RUNTIME | 931 | #ifdef CONFIG_PM |
932 | static int fsl_asrc_runtime_resume(struct device *dev) | 932 | static int fsl_asrc_runtime_resume(struct device *dev) |
933 | { | 933 | { |
934 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); | 934 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); |
@@ -954,7 +954,7 @@ static int fsl_asrc_runtime_suspend(struct device *dev) | |||
954 | 954 | ||
955 | return 0; | 955 | return 0; |
956 | } | 956 | } |
957 | #endif /* CONFIG_PM_RUNTIME */ | 957 | #endif /* CONFIG_PM */ |
958 | 958 | ||
959 | #ifdef CONFIG_PM_SLEEP | 959 | #ifdef CONFIG_PM_SLEEP |
960 | static int fsl_asrc_suspend(struct device *dev) | 960 | static int fsl_asrc_suspend(struct device *dev) |
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index b2b108805b24..93d7e56c6066 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c | |||
@@ -964,7 +964,6 @@ MODULE_DEVICE_TABLE(of, fsl_soc_dma_ids); | |||
964 | static struct platform_driver fsl_soc_dma_driver = { | 964 | static struct platform_driver fsl_soc_dma_driver = { |
965 | .driver = { | 965 | .driver = { |
966 | .name = "fsl-pcm-audio", | 966 | .name = "fsl-pcm-audio", |
967 | .owner = THIS_MODULE, | ||
968 | .of_match_table = fsl_soc_dma_ids, | 967 | .of_match_table = fsl_soc_dma_ids, |
969 | }, | 968 | }, |
970 | .probe = fsl_soc_dma_probe, | 969 | .probe = fsl_soc_dma_probe, |
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index ca319d59f843..1c08ab13637c 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c | |||
@@ -857,7 +857,6 @@ static struct platform_driver fsl_esai_driver = { | |||
857 | .probe = fsl_esai_probe, | 857 | .probe = fsl_esai_probe, |
858 | .driver = { | 858 | .driver = { |
859 | .name = "fsl-esai-dai", | 859 | .name = "fsl-esai-dai", |
860 | .owner = THIS_MODULE, | ||
861 | .of_match_table = fsl_esai_dt_ids, | 860 | .of_match_table = fsl_esai_dt_ids, |
862 | }, | 861 | }, |
863 | }; | 862 | }; |
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 7eeb1dd8ce27..032d2d33619c 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c | |||
@@ -678,7 +678,6 @@ static struct platform_driver fsl_sai_driver = { | |||
678 | .probe = fsl_sai_probe, | 678 | .probe = fsl_sai_probe, |
679 | .driver = { | 679 | .driver = { |
680 | .name = "fsl-sai", | 680 | .name = "fsl-sai", |
681 | .owner = THIS_MODULE, | ||
682 | .of_match_table = fsl_sai_ids, | 681 | .of_match_table = fsl_sai_ids, |
683 | }, | 682 | }, |
684 | }; | 683 | }; |
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 9b791621294c..af0429421fc8 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c | |||
@@ -1283,7 +1283,6 @@ MODULE_DEVICE_TABLE(of, fsl_spdif_dt_ids); | |||
1283 | static struct platform_driver fsl_spdif_driver = { | 1283 | static struct platform_driver fsl_spdif_driver = { |
1284 | .driver = { | 1284 | .driver = { |
1285 | .name = "fsl-spdif-dai", | 1285 | .name = "fsl-spdif-dai", |
1286 | .owner = THIS_MODULE, | ||
1287 | .of_match_table = fsl_spdif_dt_ids, | 1286 | .of_match_table = fsl_spdif_dt_ids, |
1288 | }, | 1287 | }, |
1289 | .probe = fsl_spdif_probe, | 1288 | .probe = fsl_spdif_probe, |
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index b6b0d25f6ace..a65f17d57ffb 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -1480,7 +1480,6 @@ static int fsl_ssi_remove(struct platform_device *pdev) | |||
1480 | static struct platform_driver fsl_ssi_driver = { | 1480 | static struct platform_driver fsl_ssi_driver = { |
1481 | .driver = { | 1481 | .driver = { |
1482 | .name = "fsl-ssi-dai", | 1482 | .name = "fsl-ssi-dai", |
1483 | .owner = THIS_MODULE, | ||
1484 | .of_match_table = fsl_ssi_ids, | 1483 | .of_match_table = fsl_ssi_ids, |
1485 | }, | 1484 | }, |
1486 | .probe = fsl_ssi_probe, | 1485 | .probe = fsl_ssi_probe, |
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 46f9beb6b273..d9050d946ae7 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -356,7 +356,6 @@ static struct platform_driver imx_audmux_driver = { | |||
356 | .id_table = imx_audmux_ids, | 356 | .id_table = imx_audmux_ids, |
357 | .driver = { | 357 | .driver = { |
358 | .name = DRIVER_NAME, | 358 | .name = DRIVER_NAME, |
359 | .owner = THIS_MODULE, | ||
360 | .of_match_table = imx_audmux_dt_ids, | 359 | .of_match_table = imx_audmux_dt_ids, |
361 | } | 360 | } |
362 | }; | 361 | }; |
diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c index a2fd7321b5a9..6bf5bce01a92 100644 --- a/sound/soc/fsl/imx-mc13783.c +++ b/sound/soc/fsl/imx-mc13783.c | |||
@@ -159,7 +159,6 @@ static int imx_mc13783_remove(struct platform_device *pdev) | |||
159 | static struct platform_driver imx_mc13783_audio_driver = { | 159 | static struct platform_driver imx_mc13783_audio_driver = { |
160 | .driver = { | 160 | .driver = { |
161 | .name = "imx_mc13783", | 161 | .name = "imx_mc13783", |
162 | .owner = THIS_MODULE, | ||
163 | }, | 162 | }, |
164 | .probe = imx_mc13783_probe, | 163 | .probe = imx_mc13783_probe, |
165 | .remove = imx_mc13783_remove | 164 | .remove = imx_mc13783_remove |
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 1dab963a59f7..b99e0b5e00e9 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c | |||
@@ -200,7 +200,6 @@ MODULE_DEVICE_TABLE(of, imx_sgtl5000_dt_ids); | |||
200 | static struct platform_driver imx_sgtl5000_driver = { | 200 | static struct platform_driver imx_sgtl5000_driver = { |
201 | .driver = { | 201 | .driver = { |
202 | .name = "imx-sgtl5000", | 202 | .name = "imx-sgtl5000", |
203 | .owner = THIS_MODULE, | ||
204 | .pm = &snd_soc_pm_ops, | 203 | .pm = &snd_soc_pm_ops, |
205 | .of_match_table = imx_sgtl5000_dt_ids, | 204 | .of_match_table = imx_sgtl5000_dt_ids, |
206 | }, | 205 | }, |
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index 0c9068ebe1e7..e94704f1b9ee 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c | |||
@@ -88,7 +88,6 @@ MODULE_DEVICE_TABLE(of, imx_spdif_dt_ids); | |||
88 | static struct platform_driver imx_spdif_driver = { | 88 | static struct platform_driver imx_spdif_driver = { |
89 | .driver = { | 89 | .driver = { |
90 | .name = "imx-spdif", | 90 | .name = "imx-spdif", |
91 | .owner = THIS_MODULE, | ||
92 | .of_match_table = imx_spdif_dt_ids, | 91 | .of_match_table = imx_spdif_dt_ids, |
93 | }, | 92 | }, |
94 | .probe = imx_spdif_audio_probe, | 93 | .probe = imx_spdif_audio_probe, |
diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c index 60b0a5b1f1f1..fa801e17c51e 100644 --- a/sound/soc/fsl/imx-ssi.c +++ b/sound/soc/fsl/imx-ssi.c | |||
@@ -647,7 +647,6 @@ static struct platform_driver imx_ssi_driver = { | |||
647 | 647 | ||
648 | .driver = { | 648 | .driver = { |
649 | .name = "imx-ssi", | 649 | .name = "imx-ssi", |
650 | .owner = THIS_MODULE, | ||
651 | }, | 650 | }, |
652 | }; | 651 | }; |
653 | 652 | ||
diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c index 48179ffe1543..4caacb05a623 100644 --- a/sound/soc/fsl/imx-wm8962.c +++ b/sound/soc/fsl/imx-wm8962.c | |||
@@ -307,7 +307,6 @@ MODULE_DEVICE_TABLE(of, imx_wm8962_dt_ids); | |||
307 | static struct platform_driver imx_wm8962_driver = { | 307 | static struct platform_driver imx_wm8962_driver = { |
308 | .driver = { | 308 | .driver = { |
309 | .name = "imx-wm8962", | 309 | .name = "imx-wm8962", |
310 | .owner = THIS_MODULE, | ||
311 | .pm = &snd_soc_pm_ops, | 310 | .pm = &snd_soc_pm_ops, |
312 | .of_match_table = imx_wm8962_dt_ids, | 311 | .of_match_table = imx_wm8962_dt_ids, |
313 | }, | 312 | }, |
diff --git a/sound/soc/fsl/mpc5200_psc_ac97.c b/sound/soc/fsl/mpc5200_psc_ac97.c index c6ed6ba965a9..08d2a8069b0a 100644 --- a/sound/soc/fsl/mpc5200_psc_ac97.c +++ b/sound/soc/fsl/mpc5200_psc_ac97.c | |||
@@ -338,7 +338,6 @@ static struct platform_driver psc_ac97_driver = { | |||
338 | .remove = psc_ac97_of_remove, | 338 | .remove = psc_ac97_of_remove, |
339 | .driver = { | 339 | .driver = { |
340 | .name = "mpc5200-psc-ac97", | 340 | .name = "mpc5200-psc-ac97", |
341 | .owner = THIS_MODULE, | ||
342 | .of_match_table = psc_ac97_match, | 341 | .of_match_table = psc_ac97_match, |
343 | }, | 342 | }, |
344 | }; | 343 | }; |
diff --git a/sound/soc/fsl/mpc5200_psc_i2s.c b/sound/soc/fsl/mpc5200_psc_i2s.c index 5d07e8a74a21..51fb0c00fe73 100644 --- a/sound/soc/fsl/mpc5200_psc_i2s.c +++ b/sound/soc/fsl/mpc5200_psc_i2s.c | |||
@@ -229,7 +229,6 @@ static struct platform_driver psc_i2s_driver = { | |||
229 | .remove = psc_i2s_of_remove, | 229 | .remove = psc_i2s_of_remove, |
230 | .driver = { | 230 | .driver = { |
231 | .name = "mpc5200-psc-i2s", | 231 | .name = "mpc5200-psc-i2s", |
232 | .owner = THIS_MODULE, | ||
233 | .of_match_table = psc_i2s_match, | 232 | .of_match_table = psc_i2s_match, |
234 | }, | 233 | }, |
235 | }; | 234 | }; |
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index fa756d05b2f7..9621b9140df6 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -389,7 +389,6 @@ static struct platform_driver mpc8610_hpcd_driver = { | |||
389 | * in lowercase letters. | 389 | * in lowercase letters. |
390 | */ | 390 | */ |
391 | .name = "snd-soc-mpc8610hpcd", | 391 | .name = "snd-soc-mpc8610hpcd", |
392 | .owner = THIS_MODULE, | ||
393 | }, | 392 | }, |
394 | }; | 393 | }; |
395 | 394 | ||
diff --git a/sound/soc/fsl/mx27vis-aic32x4.c b/sound/soc/fsl/mx27vis-aic32x4.c index f4c3bda5e69e..b1ced7b8d80c 100644 --- a/sound/soc/fsl/mx27vis-aic32x4.c +++ b/sound/soc/fsl/mx27vis-aic32x4.c | |||
@@ -229,7 +229,6 @@ static int mx27vis_aic32x4_remove(struct platform_device *pdev) | |||
229 | static struct platform_driver mx27vis_aic32x4_audio_driver = { | 229 | static struct platform_driver mx27vis_aic32x4_audio_driver = { |
230 | .driver = { | 230 | .driver = { |
231 | .name = "mx27vis", | 231 | .name = "mx27vis", |
232 | .owner = THIS_MODULE, | ||
233 | }, | 232 | }, |
234 | .probe = mx27vis_aic32x4_probe, | 233 | .probe = mx27vis_aic32x4_probe, |
235 | .remove = mx27vis_aic32x4_remove, | 234 | .remove = mx27vis_aic32x4_remove, |
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c index f75c3cf0e6de..71c1a7dc3aeb 100644 --- a/sound/soc/fsl/p1022_ds.c +++ b/sound/soc/fsl/p1022_ds.c | |||
@@ -398,7 +398,6 @@ static struct platform_driver p1022_ds_driver = { | |||
398 | * in lowercase letters. | 398 | * in lowercase letters. |
399 | */ | 399 | */ |
400 | .name = "snd-soc-p1022ds", | 400 | .name = "snd-soc-p1022ds", |
401 | .owner = THIS_MODULE, | ||
402 | }, | 401 | }, |
403 | }; | 402 | }; |
404 | 403 | ||
diff --git a/sound/soc/fsl/p1022_rdk.c b/sound/soc/fsl/p1022_rdk.c index 9d89bb028621..ee29048424be 100644 --- a/sound/soc/fsl/p1022_rdk.c +++ b/sound/soc/fsl/p1022_rdk.c | |||
@@ -348,7 +348,6 @@ static struct platform_driver p1022_rdk_driver = { | |||
348 | * in lowercase letters. | 348 | * in lowercase letters. |
349 | */ | 349 | */ |
350 | .name = "snd-soc-p1022rdk", | 350 | .name = "snd-soc-p1022rdk", |
351 | .owner = THIS_MODULE, | ||
352 | }, | 351 | }, |
353 | }; | 352 | }; |
354 | 353 | ||
diff --git a/sound/soc/fsl/pcm030-audio-fabric.c b/sound/soc/fsl/pcm030-audio-fabric.c index 3665f612819d..c44459d24c50 100644 --- a/sound/soc/fsl/pcm030-audio-fabric.c +++ b/sound/soc/fsl/pcm030-audio-fabric.c | |||
@@ -124,7 +124,6 @@ static struct platform_driver pcm030_fabric_driver = { | |||
124 | .remove = pcm030_fabric_remove, | 124 | .remove = pcm030_fabric_remove, |
125 | .driver = { | 125 | .driver = { |
126 | .name = DRV_NAME, | 126 | .name = DRV_NAME, |
127 | .owner = THIS_MODULE, | ||
128 | .of_match_table = pcm030_audio_match, | 127 | .of_match_table = pcm030_audio_match, |
129 | }, | 128 | }, |
130 | }; | 129 | }; |
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index ece22d55ba82..fb9240fdc9b7 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -584,7 +584,6 @@ MODULE_DEVICE_TABLE(of, asoc_simple_of_match); | |||
584 | static struct platform_driver asoc_simple_card = { | 584 | static struct platform_driver asoc_simple_card = { |
585 | .driver = { | 585 | .driver = { |
586 | .name = "asoc-simple-card", | 586 | .name = "asoc-simple-card", |
587 | .owner = THIS_MODULE, | ||
588 | .of_match_table = asoc_simple_of_match, | 587 | .of_match_table = asoc_simple_of_match, |
589 | }, | 588 | }, |
590 | .probe = asoc_simple_card_probe, | 589 | .probe = asoc_simple_card_probe, |
diff --git a/sound/soc/intel/broadwell.c b/sound/soc/intel/broadwell.c index c256764e3c4b..7cf95d5d5d80 100644 --- a/sound/soc/intel/broadwell.c +++ b/sound/soc/intel/broadwell.c | |||
@@ -270,7 +270,6 @@ static struct platform_driver broadwell_audio = { | |||
270 | .remove = broadwell_audio_remove, | 270 | .remove = broadwell_audio_remove, |
271 | .driver = { | 271 | .driver = { |
272 | .name = "broadwell-audio", | 272 | .name = "broadwell-audio", |
273 | .owner = THIS_MODULE, | ||
274 | }, | 273 | }, |
275 | }; | 274 | }; |
276 | 275 | ||
diff --git a/sound/soc/intel/byt-max98090.c b/sound/soc/intel/byt-max98090.c index d52681e7225e..9832afe7d22c 100644 --- a/sound/soc/intel/byt-max98090.c +++ b/sound/soc/intel/byt-max98090.c | |||
@@ -181,7 +181,6 @@ static struct platform_driver byt_max98090_driver = { | |||
181 | .remove = byt_max98090_remove, | 181 | .remove = byt_max98090_remove, |
182 | .driver = { | 182 | .driver = { |
183 | .name = "byt-max98090", | 183 | .name = "byt-max98090", |
184 | .owner = THIS_MODULE, | ||
185 | .pm = &snd_soc_pm_ops, | 184 | .pm = &snd_soc_pm_ops, |
186 | }, | 185 | }, |
187 | }; | 186 | }; |
diff --git a/sound/soc/intel/byt-rt5640.c b/sound/soc/intel/byt-rt5640.c index e03abdf21c1b..0cba7830c5e9 100644 --- a/sound/soc/intel/byt-rt5640.c +++ b/sound/soc/intel/byt-rt5640.c | |||
@@ -224,7 +224,6 @@ static struct platform_driver byt_rt5640_audio = { | |||
224 | .probe = byt_rt5640_probe, | 224 | .probe = byt_rt5640_probe, |
225 | .driver = { | 225 | .driver = { |
226 | .name = "byt-rt5640", | 226 | .name = "byt-rt5640", |
227 | .owner = THIS_MODULE, | ||
228 | .pm = &snd_soc_pm_ops, | 227 | .pm = &snd_soc_pm_ops, |
229 | }, | 228 | }, |
230 | }; | 229 | }; |
diff --git a/sound/soc/intel/haswell.c b/sound/soc/intel/haswell.c index cb8a482b5f30..35edf51a52aa 100644 --- a/sound/soc/intel/haswell.c +++ b/sound/soc/intel/haswell.c | |||
@@ -199,7 +199,6 @@ static struct platform_driver haswell_audio = { | |||
199 | .probe = haswell_audio_probe, | 199 | .probe = haswell_audio_probe, |
200 | .driver = { | 200 | .driver = { |
201 | .name = "haswell-audio", | 201 | .name = "haswell-audio", |
202 | .owner = THIS_MODULE, | ||
203 | }, | 202 | }, |
204 | }; | 203 | }; |
205 | 204 | ||
diff --git a/sound/soc/intel/mfld_machine.c b/sound/soc/intel/mfld_machine.c index 031d78783fc8..90b7a57713a0 100644 --- a/sound/soc/intel/mfld_machine.c +++ b/sound/soc/intel/mfld_machine.c | |||
@@ -420,7 +420,6 @@ static int snd_mfld_mc_probe(struct platform_device *pdev) | |||
420 | 420 | ||
421 | static struct platform_driver snd_mfld_mc_driver = { | 421 | static struct platform_driver snd_mfld_mc_driver = { |
422 | .driver = { | 422 | .driver = { |
423 | .owner = THIS_MODULE, | ||
424 | .name = "msic_audio", | 423 | .name = "msic_audio", |
425 | }, | 424 | }, |
426 | .probe = snd_mfld_mc_probe, | 425 | .probe = snd_mfld_mc_probe, |
diff --git a/sound/soc/intel/sst-acpi.c b/sound/soc/intel/sst-acpi.c index 03d0a166b635..b3d84560fbb5 100644 --- a/sound/soc/intel/sst-acpi.c +++ b/sound/soc/intel/sst-acpi.c | |||
@@ -275,7 +275,6 @@ static struct platform_driver sst_acpi_driver = { | |||
275 | .remove = sst_acpi_remove, | 275 | .remove = sst_acpi_remove, |
276 | .driver = { | 276 | .driver = { |
277 | .name = "sst-acpi", | 277 | .name = "sst-acpi", |
278 | .owner = THIS_MODULE, | ||
279 | .acpi_match_table = ACPI_PTR(sst_acpi_match), | 278 | .acpi_match_table = ACPI_PTR(sst_acpi_match), |
280 | }, | 279 | }, |
281 | }; | 280 | }; |
diff --git a/sound/soc/intel/sst-baytrail-pcm.c b/sound/soc/intel/sst-baytrail-pcm.c index eab1c7d85187..3bb6288d8b4d 100644 --- a/sound/soc/intel/sst-baytrail-pcm.c +++ b/sound/soc/intel/sst-baytrail-pcm.c | |||
@@ -497,7 +497,6 @@ static int sst_byt_pcm_dev_remove(struct platform_device *pdev) | |||
497 | static struct platform_driver sst_byt_pcm_driver = { | 497 | static struct platform_driver sst_byt_pcm_driver = { |
498 | .driver = { | 498 | .driver = { |
499 | .name = "baytrail-pcm-audio", | 499 | .name = "baytrail-pcm-audio", |
500 | .owner = THIS_MODULE, | ||
501 | .pm = SST_BYT_PM_OPS, | 500 | .pm = SST_BYT_PM_OPS, |
502 | }, | 501 | }, |
503 | 502 | ||
diff --git a/sound/soc/intel/sst-haswell-pcm.c b/sound/soc/intel/sst-haswell-pcm.c index 0180b386c421..b8a782c0d4cd 100644 --- a/sound/soc/intel/sst-haswell-pcm.c +++ b/sound/soc/intel/sst-haswell-pcm.c | |||
@@ -1170,9 +1170,7 @@ static const struct dev_pm_ops hsw_pcm_pm = { | |||
1170 | static struct platform_driver hsw_pcm_driver = { | 1170 | static struct platform_driver hsw_pcm_driver = { |
1171 | .driver = { | 1171 | .driver = { |
1172 | .name = "haswell-pcm-audio", | 1172 | .name = "haswell-pcm-audio", |
1173 | .owner = THIS_MODULE, | ||
1174 | .pm = &hsw_pcm_pm, | 1173 | .pm = &hsw_pcm_pm, |
1175 | |||
1176 | }, | 1174 | }, |
1177 | 1175 | ||
1178 | .probe = hsw_pcm_dev_probe, | 1176 | .probe = hsw_pcm_dev_probe, |
diff --git a/sound/soc/intel/sst-mfld-platform-pcm.c b/sound/soc/intel/sst-mfld-platform-pcm.c index 6032f18693be..a1a8d9d91539 100644 --- a/sound/soc/intel/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/sst-mfld-platform-pcm.c | |||
@@ -737,7 +737,6 @@ static int sst_platform_remove(struct platform_device *pdev) | |||
737 | static struct platform_driver sst_platform_driver = { | 737 | static struct platform_driver sst_platform_driver = { |
738 | .driver = { | 738 | .driver = { |
739 | .name = "sst-mfld-platform", | 739 | .name = "sst-mfld-platform", |
740 | .owner = THIS_MODULE, | ||
741 | }, | 740 | }, |
742 | .probe = sst_platform_probe, | 741 | .probe = sst_platform_probe, |
743 | .remove = sst_platform_remove, | 742 | .remove = sst_platform_remove, |
diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c index 3f9c3a9ae36f..d3d45c6f064f 100644 --- a/sound/soc/jz4740/jz4740-i2s.c +++ b/sound/soc/jz4740/jz4740-i2s.c | |||
@@ -455,7 +455,6 @@ static struct platform_driver jz4740_i2s_driver = { | |||
455 | .probe = jz4740_i2s_dev_probe, | 455 | .probe = jz4740_i2s_dev_probe, |
456 | .driver = { | 456 | .driver = { |
457 | .name = "jz4740-i2s", | 457 | .name = "jz4740-i2s", |
458 | .owner = THIS_MODULE, | ||
459 | }, | 458 | }, |
460 | }; | 459 | }; |
461 | 460 | ||
diff --git a/sound/soc/jz4740/qi_lb60.c b/sound/soc/jz4740/qi_lb60.c index 0fb7d2a91c3a..53586999fcaa 100644 --- a/sound/soc/jz4740/qi_lb60.c +++ b/sound/soc/jz4740/qi_lb60.c | |||
@@ -100,7 +100,6 @@ static int qi_lb60_probe(struct platform_device *pdev) | |||
100 | static struct platform_driver qi_lb60_driver = { | 100 | static struct platform_driver qi_lb60_driver = { |
101 | .driver = { | 101 | .driver = { |
102 | .name = "qi-lb60-audio", | 102 | .name = "qi-lb60-audio", |
103 | .owner = THIS_MODULE, | ||
104 | }, | 103 | }, |
105 | .probe = qi_lb60_probe, | 104 | .probe = qi_lb60_probe, |
106 | }; | 105 | }; |
diff --git a/sound/soc/kirkwood/armada-370-db.c b/sound/soc/kirkwood/armada-370-db.c index c44333849259..de7563bdc5c2 100644 --- a/sound/soc/kirkwood/armada-370-db.c +++ b/sound/soc/kirkwood/armada-370-db.c | |||
@@ -134,7 +134,6 @@ static const struct of_device_id a370db_dt_ids[] = { | |||
134 | static struct platform_driver a370db_driver = { | 134 | static struct platform_driver a370db_driver = { |
135 | .driver = { | 135 | .driver = { |
136 | .name = "a370db-audio", | 136 | .name = "a370db-audio", |
137 | .owner = THIS_MODULE, | ||
138 | .of_match_table = of_match_ptr(a370db_dt_ids), | 137 | .of_match_table = of_match_ptr(a370db_dt_ids), |
139 | }, | 138 | }, |
140 | .probe = a370db_probe, | 139 | .probe = a370db_probe, |
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c index 0704cd6d2314..def7d8260c4e 100644 --- a/sound/soc/kirkwood/kirkwood-i2s.c +++ b/sound/soc/kirkwood/kirkwood-i2s.c | |||
@@ -657,7 +657,6 @@ static struct platform_driver kirkwood_i2s_driver = { | |||
657 | .remove = kirkwood_i2s_dev_remove, | 657 | .remove = kirkwood_i2s_dev_remove, |
658 | .driver = { | 658 | .driver = { |
659 | .name = DRV_NAME, | 659 | .name = DRV_NAME, |
660 | .owner = THIS_MODULE, | ||
661 | .of_match_table = of_match_ptr(mvebu_audio_of_match), | 660 | .of_match_table = of_match_ptr(mvebu_audio_of_match), |
662 | }, | 661 | }, |
663 | }; | 662 | }; |
diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index 83b2fea09219..d9865082160c 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c | |||
@@ -815,7 +815,6 @@ static struct platform_driver mxs_saif_driver = { | |||
815 | 815 | ||
816 | .driver = { | 816 | .driver = { |
817 | .name = "mxs-saif", | 817 | .name = "mxs-saif", |
818 | .owner = THIS_MODULE, | ||
819 | .of_match_table = mxs_saif_dt_ids, | 818 | .of_match_table = mxs_saif_dt_ids, |
820 | }, | 819 | }, |
821 | }; | 820 | }; |
diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index 3bba6cfe4f29..6f1916b71815 100644 --- a/sound/soc/mxs/mxs-sgtl5000.c +++ b/sound/soc/mxs/mxs-sgtl5000.c | |||
@@ -187,7 +187,6 @@ MODULE_DEVICE_TABLE(of, mxs_sgtl5000_dt_ids); | |||
187 | static struct platform_driver mxs_sgtl5000_audio_driver = { | 187 | static struct platform_driver mxs_sgtl5000_audio_driver = { |
188 | .driver = { | 188 | .driver = { |
189 | .name = "mxs-sgtl5000", | 189 | .name = "mxs-sgtl5000", |
190 | .owner = THIS_MODULE, | ||
191 | .of_match_table = mxs_sgtl5000_dt_ids, | 190 | .of_match_table = mxs_sgtl5000_dt_ids, |
192 | }, | 191 | }, |
193 | .probe = mxs_sgtl5000_probe, | 192 | .probe = mxs_sgtl5000_probe, |
diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c index dff443e4b657..b6615affe571 100644 --- a/sound/soc/nuc900/nuc900-ac97.c +++ b/sound/soc/nuc900/nuc900-ac97.c | |||
@@ -385,7 +385,6 @@ static int nuc900_ac97_drvremove(struct platform_device *pdev) | |||
385 | static struct platform_driver nuc900_ac97_driver = { | 385 | static struct platform_driver nuc900_ac97_driver = { |
386 | .driver = { | 386 | .driver = { |
387 | .name = "nuc900-ac97", | 387 | .name = "nuc900-ac97", |
388 | .owner = THIS_MODULE, | ||
389 | }, | 388 | }, |
390 | .probe = nuc900_ac97_drvprobe, | 389 | .probe = nuc900_ac97_drvprobe, |
391 | .remove = nuc900_ac97_drvremove, | 390 | .remove = nuc900_ac97_drvremove, |
diff --git a/sound/soc/nuc900/nuc900-pcm.c b/sound/soc/nuc900/nuc900-pcm.c index f434ed79d1b6..b779a3d9b5dd 100644 --- a/sound/soc/nuc900/nuc900-pcm.c +++ b/sound/soc/nuc900/nuc900-pcm.c | |||
@@ -347,7 +347,6 @@ static int nuc900_soc_platform_remove(struct platform_device *pdev) | |||
347 | static struct platform_driver nuc900_pcm_driver = { | 347 | static struct platform_driver nuc900_pcm_driver = { |
348 | .driver = { | 348 | .driver = { |
349 | .name = "nuc900-pcm-audio", | 349 | .name = "nuc900-pcm-audio", |
350 | .owner = THIS_MODULE, | ||
351 | }, | 350 | }, |
352 | 351 | ||
353 | .probe = nuc900_soc_platform_probe, | 352 | .probe = nuc900_soc_platform_probe, |
diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig index 2738b1984410..a2cd3486ac55 100644 --- a/sound/soc/omap/Kconfig +++ b/sound/soc/omap/Kconfig | |||
@@ -12,8 +12,20 @@ config SND_OMAP_SOC_MCBSP | |||
12 | config SND_OMAP_SOC_MCPDM | 12 | config SND_OMAP_SOC_MCPDM |
13 | tristate | 13 | tristate |
14 | 14 | ||
15 | config SND_OMAP_SOC_HDMI | 15 | config SND_OMAP_SOC_HDMI_AUDIO |
16 | tristate | 16 | tristate "HDMI audio support for OMAP4+ based SoCs" |
17 | depends on SND_OMAP_SOC | ||
18 | help | ||
19 | For HDMI audio to work OMAPDSS HDMI support should be | ||
20 | enabled. | ||
21 | The hdmi audio driver implements cpu-dai component using the | ||
22 | callbacks provided by OMAPDSS and registers the component | ||
23 | under DSS HDMI device. Omap-pcm is registered for platform | ||
24 | component also under DSS HDMI device. Dummy codec is used as | ||
25 | as codec component. The hdmi audio driver implements also | ||
26 | the card and registers it under its own platform device. | ||
27 | The device for the dirver is registered by OMAPDSS hdmi | ||
28 | driver. | ||
17 | 29 | ||
18 | config SND_OMAP_SOC_N810 | 30 | config SND_OMAP_SOC_N810 |
19 | tristate "SoC Audio support for Nokia N810" | 31 | tristate "SoC Audio support for Nokia N810" |
@@ -100,16 +112,6 @@ config SND_OMAP_SOC_OMAP_ABE_TWL6040 | |||
100 | - PandaBoard (4430) | 112 | - PandaBoard (4430) |
101 | - PandaBoardES (4460) | 113 | - PandaBoardES (4460) |
102 | 114 | ||
103 | config SND_OMAP_SOC_OMAP_HDMI | ||
104 | tristate "SoC Audio support for Texas Instruments OMAP HDMI" | ||
105 | depends on SND_OMAP_SOC && OMAP4_DSS_HDMI && OMAP2_DSS | ||
106 | select SND_OMAP_SOC_HDMI | ||
107 | select SND_SOC_HDMI_CODEC | ||
108 | select OMAP4_DSS_HDMI_AUDIO | ||
109 | help | ||
110 | Say Y if you want to add support for SoC HDMI audio on Texas Instruments | ||
111 | OMAP4 chips | ||
112 | |||
113 | config SND_OMAP_SOC_OMAP3_PANDORA | 115 | config SND_OMAP_SOC_OMAP3_PANDORA |
114 | tristate "SoC Audio support for OMAP3 Pandora" | 116 | tristate "SoC Audio support for OMAP3 Pandora" |
115 | depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OMAP3_PANDORA | 117 | depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OMAP3_PANDORA |
diff --git a/sound/soc/omap/Makefile b/sound/soc/omap/Makefile index a725905b2c68..db36fbd5d1a0 100644 --- a/sound/soc/omap/Makefile +++ b/sound/soc/omap/Makefile | |||
@@ -3,13 +3,13 @@ snd-soc-omap-objs := omap-pcm.o | |||
3 | snd-soc-omap-dmic-objs := omap-dmic.o | 3 | snd-soc-omap-dmic-objs := omap-dmic.o |
4 | snd-soc-omap-mcbsp-objs := omap-mcbsp.o mcbsp.o | 4 | snd-soc-omap-mcbsp-objs := omap-mcbsp.o mcbsp.o |
5 | snd-soc-omap-mcpdm-objs := omap-mcpdm.o | 5 | snd-soc-omap-mcpdm-objs := omap-mcpdm.o |
6 | snd-soc-omap-hdmi-objs := omap-hdmi.o | 6 | snd-soc-omap-hdmi-audio-objs := omap-hdmi-audio.o |
7 | 7 | ||
8 | obj-$(CONFIG_SND_OMAP_SOC) += snd-soc-omap.o | 8 | obj-$(CONFIG_SND_OMAP_SOC) += snd-soc-omap.o |
9 | obj-$(CONFIG_SND_OMAP_SOC_DMIC) += snd-soc-omap-dmic.o | 9 | obj-$(CONFIG_SND_OMAP_SOC_DMIC) += snd-soc-omap-dmic.o |
10 | obj-$(CONFIG_SND_OMAP_SOC_MCBSP) += snd-soc-omap-mcbsp.o | 10 | obj-$(CONFIG_SND_OMAP_SOC_MCBSP) += snd-soc-omap-mcbsp.o |
11 | obj-$(CONFIG_SND_OMAP_SOC_MCPDM) += snd-soc-omap-mcpdm.o | 11 | obj-$(CONFIG_SND_OMAP_SOC_MCPDM) += snd-soc-omap-mcpdm.o |
12 | obj-$(CONFIG_SND_OMAP_SOC_HDMI) += snd-soc-omap-hdmi.o | 12 | obj-$(CONFIG_SND_OMAP_SOC_HDMI_AUDIO) += snd-soc-omap-hdmi-audio.o |
13 | 13 | ||
14 | # OMAP Machine Support | 14 | # OMAP Machine Support |
15 | snd-soc-n810-objs := n810.o | 15 | snd-soc-n810-objs := n810.o |
@@ -20,7 +20,6 @@ snd-soc-am3517evm-objs := am3517evm.o | |||
20 | snd-soc-omap-abe-twl6040-objs := omap-abe-twl6040.o | 20 | snd-soc-omap-abe-twl6040-objs := omap-abe-twl6040.o |
21 | snd-soc-omap-twl4030-objs := omap-twl4030.o | 21 | snd-soc-omap-twl4030-objs := omap-twl4030.o |
22 | snd-soc-omap3pandora-objs := omap3pandora.o | 22 | snd-soc-omap3pandora-objs := omap3pandora.o |
23 | snd-soc-omap-hdmi-card-objs := omap-hdmi-card.o | ||
24 | 23 | ||
25 | obj-$(CONFIG_SND_OMAP_SOC_N810) += snd-soc-n810.o | 24 | obj-$(CONFIG_SND_OMAP_SOC_N810) += snd-soc-n810.o |
26 | obj-$(CONFIG_SND_OMAP_SOC_RX51) += snd-soc-rx51.o | 25 | obj-$(CONFIG_SND_OMAP_SOC_RX51) += snd-soc-rx51.o |
@@ -30,4 +29,3 @@ obj-$(CONFIG_SND_OMAP_SOC_AM3517EVM) += snd-soc-am3517evm.o | |||
30 | obj-$(CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040) += snd-soc-omap-abe-twl6040.o | 29 | obj-$(CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040) += snd-soc-omap-abe-twl6040.o |
31 | obj-$(CONFIG_SND_OMAP_SOC_OMAP_TWL4030) += snd-soc-omap-twl4030.o | 30 | obj-$(CONFIG_SND_OMAP_SOC_OMAP_TWL4030) += snd-soc-omap-twl4030.o |
32 | obj-$(CONFIG_SND_OMAP_SOC_OMAP3_PANDORA) += snd-soc-omap3pandora.o | 31 | obj-$(CONFIG_SND_OMAP_SOC_OMAP3_PANDORA) += snd-soc-omap3pandora.o |
33 | obj-$(CONFIG_SND_OMAP_SOC_OMAP_HDMI) += snd-soc-omap-hdmi-card.o | ||
diff --git a/sound/soc/omap/ams-delta.c b/sound/soc/omap/ams-delta.c index 8c9cc64a9dfb..4c6afb75eea6 100644 --- a/sound/soc/omap/ams-delta.c +++ b/sound/soc/omap/ams-delta.c | |||
@@ -599,7 +599,6 @@ static int ams_delta_remove(struct platform_device *pdev) | |||
599 | static struct platform_driver ams_delta_driver = { | 599 | static struct platform_driver ams_delta_driver = { |
600 | .driver = { | 600 | .driver = { |
601 | .name = DRV_NAME, | 601 | .name = DRV_NAME, |
602 | .owner = THIS_MODULE, | ||
603 | }, | 602 | }, |
604 | .probe = ams_delta_probe, | 603 | .probe = ams_delta_probe, |
605 | .remove = ams_delta_remove, | 604 | .remove = ams_delta_remove, |
diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c index cec836ed0c01..b9c65f1ad5a8 100644 --- a/sound/soc/omap/omap-abe-twl6040.c +++ b/sound/soc/omap/omap-abe-twl6040.c | |||
@@ -354,7 +354,6 @@ MODULE_DEVICE_TABLE(of, omap_abe_of_match); | |||
354 | static struct platform_driver omap_abe_driver = { | 354 | static struct platform_driver omap_abe_driver = { |
355 | .driver = { | 355 | .driver = { |
356 | .name = "omap-abe-twl6040", | 356 | .name = "omap-abe-twl6040", |
357 | .owner = THIS_MODULE, | ||
358 | .pm = &snd_soc_pm_ops, | 357 | .pm = &snd_soc_pm_ops, |
359 | .of_match_table = omap_abe_of_match, | 358 | .of_match_table = omap_abe_of_match, |
360 | }, | 359 | }, |
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 0f34e28a3d55..09db2aec12a3 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c | |||
@@ -509,7 +509,6 @@ MODULE_DEVICE_TABLE(of, omap_dmic_of_match); | |||
509 | static struct platform_driver asoc_dmic_driver = { | 509 | static struct platform_driver asoc_dmic_driver = { |
510 | .driver = { | 510 | .driver = { |
511 | .name = "omap-dmic", | 511 | .name = "omap-dmic", |
512 | .owner = THIS_MODULE, | ||
513 | .of_match_table = omap_dmic_of_match, | 512 | .of_match_table = omap_dmic_of_match, |
514 | }, | 513 | }, |
515 | .probe = asoc_dmic_probe, | 514 | .probe = asoc_dmic_probe, |
diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c new file mode 100644 index 000000000000..3f9ac7dbdc80 --- /dev/null +++ b/sound/soc/omap/omap-hdmi-audio.c | |||
@@ -0,0 +1,407 @@ | |||
1 | /* | ||
2 | * omap-hdmi-audio.c -- OMAP4+ DSS HDMI audio support library | ||
3 | * | ||
4 | * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com | ||
5 | * | ||
6 | * Author: Jyri Sarha <jsarha@ti.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or | ||
9 | * modify it under the terms of the GNU General Public License | ||
10 | * version 2 as published by the Free Software Foundation. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but | ||
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * General Public License for more details. | ||
16 | * | ||
17 | */ | ||
18 | |||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/module.h> | ||
21 | #include <linux/err.h> | ||
22 | #include <linux/string.h> | ||
23 | #include <linux/platform_device.h> | ||
24 | #include <sound/soc.h> | ||
25 | #include <sound/pcm_params.h> | ||
26 | #include <sound/dmaengine_pcm.h> | ||
27 | #include <uapi/sound/asound.h> | ||
28 | #include <sound/asoundef.h> | ||
29 | #include <sound/omap-pcm.h> | ||
30 | #include <sound/omap-hdmi-audio.h> | ||
31 | #include <video/omapdss.h> | ||
32 | |||
33 | #define DRV_NAME "omap-hdmi-audio" | ||
34 | |||
35 | struct hdmi_audio_data { | ||
36 | struct snd_soc_card *card; | ||
37 | |||
38 | const struct omap_hdmi_audio_ops *ops; | ||
39 | struct device *dssdev; | ||
40 | struct snd_dmaengine_dai_dma_data dma_data; | ||
41 | struct omap_dss_audio dss_audio; | ||
42 | struct snd_aes_iec958 iec; | ||
43 | struct snd_cea_861_aud_if cea; | ||
44 | |||
45 | struct mutex current_stream_lock; | ||
46 | struct snd_pcm_substream *current_stream; | ||
47 | }; | ||
48 | |||
49 | static | ||
50 | struct hdmi_audio_data *card_drvdata_substream(struct snd_pcm_substream *ss) | ||
51 | { | ||
52 | struct snd_soc_pcm_runtime *rtd = ss->private_data; | ||
53 | |||
54 | return snd_soc_card_get_drvdata(rtd->card); | ||
55 | } | ||
56 | |||
57 | static void hdmi_dai_abort(struct device *dev) | ||
58 | { | ||
59 | struct hdmi_audio_data *ad = dev_get_drvdata(dev); | ||
60 | |||
61 | mutex_lock(&ad->current_stream_lock); | ||
62 | if (ad->current_stream && ad->current_stream->runtime && | ||
63 | snd_pcm_running(ad->current_stream)) { | ||
64 | dev_err(dev, "HDMI display disabled, aborting playback\n"); | ||
65 | snd_pcm_stream_lock_irq(ad->current_stream); | ||
66 | snd_pcm_stop(ad->current_stream, SNDRV_PCM_STATE_DISCONNECTED); | ||
67 | snd_pcm_stream_unlock_irq(ad->current_stream); | ||
68 | } | ||
69 | mutex_unlock(&ad->current_stream_lock); | ||
70 | } | ||
71 | |||
72 | static int hdmi_dai_startup(struct snd_pcm_substream *substream, | ||
73 | struct snd_soc_dai *dai) | ||
74 | { | ||
75 | struct hdmi_audio_data *ad = card_drvdata_substream(substream); | ||
76 | int ret; | ||
77 | /* | ||
78 | * Make sure that the period bytes are multiple of the DMA packet size. | ||
79 | * Largest packet size we use is 32 32-bit words = 128 bytes | ||
80 | */ | ||
81 | ret = snd_pcm_hw_constraint_step(substream->runtime, 0, | ||
82 | SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 128); | ||
83 | if (ret < 0) { | ||
84 | dev_err(dai->dev, "could not apply constraint\n"); | ||
85 | return ret; | ||
86 | } | ||
87 | |||
88 | snd_soc_dai_set_dma_data(dai, substream, &ad->dma_data); | ||
89 | |||
90 | mutex_lock(&ad->current_stream_lock); | ||
91 | ad->current_stream = substream; | ||
92 | mutex_unlock(&ad->current_stream_lock); | ||
93 | |||
94 | ret = ad->ops->audio_startup(ad->dssdev, hdmi_dai_abort); | ||
95 | |||
96 | if (ret) { | ||
97 | mutex_lock(&ad->current_stream_lock); | ||
98 | ad->current_stream = NULL; | ||
99 | mutex_unlock(&ad->current_stream_lock); | ||
100 | } | ||
101 | |||
102 | return ret; | ||
103 | } | ||
104 | |||
105 | static int hdmi_dai_hw_params(struct snd_pcm_substream *substream, | ||
106 | struct snd_pcm_hw_params *params, | ||
107 | struct snd_soc_dai *dai) | ||
108 | { | ||
109 | struct hdmi_audio_data *ad = card_drvdata_substream(substream); | ||
110 | struct snd_aes_iec958 *iec = &ad->iec; | ||
111 | struct snd_cea_861_aud_if *cea = &ad->cea; | ||
112 | |||
113 | WARN_ON(ad->current_stream != substream); | ||
114 | |||
115 | switch (params_format(params)) { | ||
116 | case SNDRV_PCM_FORMAT_S16_LE: | ||
117 | ad->dma_data.maxburst = 16; | ||
118 | break; | ||
119 | case SNDRV_PCM_FORMAT_S24_LE: | ||
120 | ad->dma_data.maxburst = 32; | ||
121 | break; | ||
122 | default: | ||
123 | dev_err(dai->dev, "format not supported!\n"); | ||
124 | return -EINVAL; | ||
125 | } | ||
126 | |||
127 | ad->dss_audio.iec = iec; | ||
128 | ad->dss_audio.cea = cea; | ||
129 | /* | ||
130 | * fill the IEC-60958 channel status word | ||
131 | */ | ||
132 | /* initialize the word bytes */ | ||
133 | memset(iec->status, 0, sizeof(iec->status)); | ||
134 | |||
135 | /* specify IEC-60958-3 (commercial use) */ | ||
136 | iec->status[0] &= ~IEC958_AES0_PROFESSIONAL; | ||
137 | |||
138 | /* specify that the audio is LPCM*/ | ||
139 | iec->status[0] &= ~IEC958_AES0_NONAUDIO; | ||
140 | |||
141 | iec->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; | ||
142 | |||
143 | iec->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; | ||
144 | |||
145 | iec->status[0] |= IEC958_AES1_PRO_MODE_NOTID; | ||
146 | |||
147 | iec->status[1] = IEC958_AES1_CON_GENERAL; | ||
148 | |||
149 | iec->status[2] |= IEC958_AES2_CON_SOURCE_UNSPEC; | ||
150 | |||
151 | iec->status[2] |= IEC958_AES2_CON_CHANNEL_UNSPEC; | ||
152 | |||
153 | switch (params_rate(params)) { | ||
154 | case 32000: | ||
155 | iec->status[3] |= IEC958_AES3_CON_FS_32000; | ||
156 | break; | ||
157 | case 44100: | ||
158 | iec->status[3] |= IEC958_AES3_CON_FS_44100; | ||
159 | break; | ||
160 | case 48000: | ||
161 | iec->status[3] |= IEC958_AES3_CON_FS_48000; | ||
162 | break; | ||
163 | case 88200: | ||
164 | iec->status[3] |= IEC958_AES3_CON_FS_88200; | ||
165 | break; | ||
166 | case 96000: | ||
167 | iec->status[3] |= IEC958_AES3_CON_FS_96000; | ||
168 | break; | ||
169 | case 176400: | ||
170 | iec->status[3] |= IEC958_AES3_CON_FS_176400; | ||
171 | break; | ||
172 | case 192000: | ||
173 | iec->status[3] |= IEC958_AES3_CON_FS_192000; | ||
174 | break; | ||
175 | default: | ||
176 | dev_err(dai->dev, "rate not supported!\n"); | ||
177 | return -EINVAL; | ||
178 | } | ||
179 | |||
180 | /* specify the clock accuracy */ | ||
181 | iec->status[3] |= IEC958_AES3_CON_CLOCK_1000PPM; | ||
182 | |||
183 | /* | ||
184 | * specify the word length. The same word length value can mean | ||
185 | * two different lengths. Hence, we need to specify the maximum | ||
186 | * word length as well. | ||
187 | */ | ||
188 | switch (params_format(params)) { | ||
189 | case SNDRV_PCM_FORMAT_S16_LE: | ||
190 | iec->status[4] |= IEC958_AES4_CON_WORDLEN_20_16; | ||
191 | iec->status[4] &= ~IEC958_AES4_CON_MAX_WORDLEN_24; | ||
192 | break; | ||
193 | case SNDRV_PCM_FORMAT_S24_LE: | ||
194 | iec->status[4] |= IEC958_AES4_CON_WORDLEN_24_20; | ||
195 | iec->status[4] |= IEC958_AES4_CON_MAX_WORDLEN_24; | ||
196 | break; | ||
197 | default: | ||
198 | dev_err(dai->dev, "format not supported!\n"); | ||
199 | return -EINVAL; | ||
200 | } | ||
201 | |||
202 | /* | ||
203 | * Fill the CEA-861 audio infoframe (see spec for details) | ||
204 | */ | ||
205 | |||
206 | cea->db1_ct_cc = (params_channels(params) - 1) | ||
207 | & CEA861_AUDIO_INFOFRAME_DB1CC; | ||
208 | cea->db1_ct_cc |= CEA861_AUDIO_INFOFRAME_DB1CT_FROM_STREAM; | ||
209 | |||
210 | cea->db2_sf_ss = CEA861_AUDIO_INFOFRAME_DB2SF_FROM_STREAM; | ||
211 | cea->db2_sf_ss |= CEA861_AUDIO_INFOFRAME_DB2SS_FROM_STREAM; | ||
212 | |||
213 | cea->db3 = 0; /* not used, all zeros */ | ||
214 | |||
215 | /* | ||
216 | * The OMAP HDMI IP requires to use the 8-channel channel code when | ||
217 | * transmitting more than two channels. | ||
218 | */ | ||
219 | if (params_channels(params) == 2) | ||
220 | cea->db4_ca = 0x0; | ||
221 | else | ||
222 | cea->db4_ca = 0x13; | ||
223 | |||
224 | cea->db5_dminh_lsv = CEA861_AUDIO_INFOFRAME_DB5_DM_INH_PROHIBITED; | ||
225 | /* the expression is trivial but makes clear what we are doing */ | ||
226 | cea->db5_dminh_lsv |= (0 & CEA861_AUDIO_INFOFRAME_DB5_LSV); | ||
227 | |||
228 | return ad->ops->audio_config(ad->dssdev, &ad->dss_audio); | ||
229 | } | ||
230 | |||
231 | static int hdmi_dai_trigger(struct snd_pcm_substream *substream, int cmd, | ||
232 | struct snd_soc_dai *dai) | ||
233 | { | ||
234 | struct hdmi_audio_data *ad = card_drvdata_substream(substream); | ||
235 | int err = 0; | ||
236 | |||
237 | WARN_ON(ad->current_stream != substream); | ||
238 | |||
239 | switch (cmd) { | ||
240 | case SNDRV_PCM_TRIGGER_START: | ||
241 | case SNDRV_PCM_TRIGGER_RESUME: | ||
242 | case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: | ||
243 | err = ad->ops->audio_start(ad->dssdev); | ||
244 | break; | ||
245 | case SNDRV_PCM_TRIGGER_STOP: | ||
246 | case SNDRV_PCM_TRIGGER_SUSPEND: | ||
247 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | ||
248 | ad->ops->audio_stop(ad->dssdev); | ||
249 | break; | ||
250 | default: | ||
251 | err = -EINVAL; | ||
252 | } | ||
253 | return err; | ||
254 | } | ||
255 | |||
256 | static void hdmi_dai_shutdown(struct snd_pcm_substream *substream, | ||
257 | struct snd_soc_dai *dai) | ||
258 | { | ||
259 | struct hdmi_audio_data *ad = card_drvdata_substream(substream); | ||
260 | |||
261 | WARN_ON(ad->current_stream != substream); | ||
262 | |||
263 | ad->ops->audio_shutdown(ad->dssdev); | ||
264 | |||
265 | mutex_lock(&ad->current_stream_lock); | ||
266 | ad->current_stream = NULL; | ||
267 | mutex_unlock(&ad->current_stream_lock); | ||
268 | } | ||
269 | |||
270 | static const struct snd_soc_dai_ops hdmi_dai_ops = { | ||
271 | .startup = hdmi_dai_startup, | ||
272 | .hw_params = hdmi_dai_hw_params, | ||
273 | .trigger = hdmi_dai_trigger, | ||
274 | .shutdown = hdmi_dai_shutdown, | ||
275 | }; | ||
276 | |||
277 | static const struct snd_soc_component_driver omap_hdmi_component = { | ||
278 | .name = "omapdss_hdmi", | ||
279 | }; | ||
280 | |||
281 | static struct snd_soc_dai_driver omap5_hdmi_dai = { | ||
282 | .name = "omap5-hdmi-dai", | ||
283 | .playback = { | ||
284 | .channels_min = 2, | ||
285 | .channels_max = 8, | ||
286 | .rates = (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | | ||
287 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | | ||
288 | SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 | | ||
289 | SNDRV_PCM_RATE_192000), | ||
290 | .formats = SNDRV_PCM_FMTBIT_S16_LE, | ||
291 | }, | ||
292 | .ops = &hdmi_dai_ops, | ||
293 | }; | ||
294 | |||
295 | static struct snd_soc_dai_driver omap4_hdmi_dai = { | ||
296 | .name = "omap4-hdmi-dai", | ||
297 | .playback = { | ||
298 | .channels_min = 2, | ||
299 | .channels_max = 8, | ||
300 | .rates = (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | | ||
301 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | | ||
302 | SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 | | ||
303 | SNDRV_PCM_RATE_192000), | ||
304 | .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, | ||
305 | }, | ||
306 | .ops = &hdmi_dai_ops, | ||
307 | }; | ||
308 | |||
309 | static int omap_hdmi_audio_probe(struct platform_device *pdev) | ||
310 | { | ||
311 | struct omap_hdmi_audio_pdata *ha = pdev->dev.platform_data; | ||
312 | struct device *dev = &pdev->dev; | ||
313 | struct hdmi_audio_data *ad; | ||
314 | struct snd_soc_dai_driver *dai_drv; | ||
315 | struct snd_soc_card *card; | ||
316 | int ret; | ||
317 | |||
318 | if (!ha) { | ||
319 | dev_err(dev, "No platform data\n"); | ||
320 | return -EINVAL; | ||
321 | } | ||
322 | |||
323 | ad = devm_kzalloc(dev, sizeof(*ad), GFP_KERNEL); | ||
324 | if (!ad) | ||
325 | return -ENOMEM; | ||
326 | ad->dssdev = ha->dev; | ||
327 | ad->ops = ha->ops; | ||
328 | ad->dma_data.addr = ha->audio_dma_addr; | ||
329 | ad->dma_data.filter_data = "audio_tx"; | ||
330 | ad->dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; | ||
331 | mutex_init(&ad->current_stream_lock); | ||
332 | |||
333 | switch (ha->dss_version) { | ||
334 | case OMAPDSS_VER_OMAP4430_ES1: | ||
335 | case OMAPDSS_VER_OMAP4430_ES2: | ||
336 | case OMAPDSS_VER_OMAP4: | ||
337 | dai_drv = &omap4_hdmi_dai; | ||
338 | break; | ||
339 | case OMAPDSS_VER_OMAP5: | ||
340 | dai_drv = &omap5_hdmi_dai; | ||
341 | break; | ||
342 | default: | ||
343 | return -EINVAL; | ||
344 | } | ||
345 | ret = snd_soc_register_component(ad->dssdev, &omap_hdmi_component, | ||
346 | dai_drv, 1); | ||
347 | if (ret) | ||
348 | return ret; | ||
349 | |||
350 | ret = omap_pcm_platform_register(ad->dssdev); | ||
351 | if (ret) | ||
352 | return ret; | ||
353 | |||
354 | card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); | ||
355 | card->name = devm_kasprintf(dev, GFP_KERNEL, | ||
356 | "HDMI %s", dev_name(ad->dssdev)); | ||
357 | card->owner = THIS_MODULE; | ||
358 | card->dai_link = | ||
359 | devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); | ||
360 | card->dai_link->name = card->name; | ||
361 | card->dai_link->stream_name = card->name; | ||
362 | card->dai_link->cpu_dai_name = dev_name(ad->dssdev); | ||
363 | card->dai_link->platform_name = dev_name(ad->dssdev); | ||
364 | card->dai_link->codec_name = "snd-soc-dummy"; | ||
365 | card->dai_link->codec_dai_name = "snd-soc-dummy-dai"; | ||
366 | card->num_links = 1; | ||
367 | card->dev = dev; | ||
368 | |||
369 | ret = snd_soc_register_card(card); | ||
370 | if (ret) { | ||
371 | dev_err(dev, "snd_soc_register_card failed (%d)\n", ret); | ||
372 | snd_soc_unregister_component(ad->dssdev); | ||
373 | return ret; | ||
374 | } | ||
375 | |||
376 | ad->card = card; | ||
377 | snd_soc_card_set_drvdata(card, ad); | ||
378 | |||
379 | dev_set_drvdata(dev, ad); | ||
380 | |||
381 | return 0; | ||
382 | } | ||
383 | |||
384 | static int omap_hdmi_audio_remove(struct platform_device *pdev) | ||
385 | { | ||
386 | struct hdmi_audio_data *ad = platform_get_drvdata(pdev); | ||
387 | |||
388 | snd_soc_unregister_card(ad->card); | ||
389 | snd_soc_unregister_component(ad->dssdev); | ||
390 | return 0; | ||
391 | } | ||
392 | |||
393 | static struct platform_driver hdmi_audio_driver = { | ||
394 | .driver = { | ||
395 | .name = DRV_NAME, | ||
396 | .owner = THIS_MODULE, | ||
397 | }, | ||
398 | .probe = omap_hdmi_audio_probe, | ||
399 | .remove = omap_hdmi_audio_remove, | ||
400 | }; | ||
401 | |||
402 | module_platform_driver(hdmi_audio_driver); | ||
403 | |||
404 | MODULE_AUTHOR("Jyri Sarha <jsarha@ti.com>"); | ||
405 | MODULE_DESCRIPTION("OMAP HDMI Audio Driver"); | ||
406 | MODULE_LICENSE("GPL"); | ||
407 | MODULE_ALIAS("platform:" DRV_NAME); | ||
diff --git a/sound/soc/omap/omap-hdmi-card.c b/sound/soc/omap/omap-hdmi-card.c deleted file mode 100644 index f649fe84b629..000000000000 --- a/sound/soc/omap/omap-hdmi-card.c +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | /* | ||
2 | * omap-hdmi-card.c | ||
3 | * | ||
4 | * OMAP ALSA SoC machine driver for TI OMAP HDMI | ||
5 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ | ||
6 | * Author: Ricardo Neri <ricardo.neri@ti.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or | ||
9 | * modify it under the terms of the GNU General Public License | ||
10 | * version 2 as published by the Free Software Foundation. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but | ||
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
20 | * 02110-1301 USA | ||
21 | * | ||
22 | */ | ||
23 | |||
24 | #include <linux/module.h> | ||
25 | #include <sound/pcm.h> | ||
26 | #include <sound/soc.h> | ||
27 | #include <asm/mach-types.h> | ||
28 | #include <video/omapdss.h> | ||
29 | |||
30 | #define DRV_NAME "omap-hdmi-audio" | ||
31 | |||
32 | static struct snd_soc_dai_link omap_hdmi_dai = { | ||
33 | .name = "HDMI", | ||
34 | .stream_name = "HDMI", | ||
35 | .cpu_dai_name = "omap-hdmi-audio-dai", | ||
36 | .platform_name = "omap-hdmi-audio-dai", | ||
37 | .codec_name = "hdmi-audio-codec", | ||
38 | .codec_dai_name = "hdmi-hifi", | ||
39 | }; | ||
40 | |||
41 | static struct snd_soc_card snd_soc_omap_hdmi = { | ||
42 | .name = "OMAPHDMI", | ||
43 | .owner = THIS_MODULE, | ||
44 | .dai_link = &omap_hdmi_dai, | ||
45 | .num_links = 1, | ||
46 | }; | ||
47 | |||
48 | static int omap_hdmi_probe(struct platform_device *pdev) | ||
49 | { | ||
50 | struct snd_soc_card *card = &snd_soc_omap_hdmi; | ||
51 | int ret; | ||
52 | |||
53 | card->dev = &pdev->dev; | ||
54 | |||
55 | ret = snd_soc_register_card(card); | ||
56 | if (ret) { | ||
57 | dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); | ||
58 | card->dev = NULL; | ||
59 | return ret; | ||
60 | } | ||
61 | return 0; | ||
62 | } | ||
63 | |||
64 | static int omap_hdmi_remove(struct platform_device *pdev) | ||
65 | { | ||
66 | struct snd_soc_card *card = platform_get_drvdata(pdev); | ||
67 | |||
68 | snd_soc_unregister_card(card); | ||
69 | card->dev = NULL; | ||
70 | return 0; | ||
71 | } | ||
72 | |||
73 | static struct platform_driver omap_hdmi_driver = { | ||
74 | .driver = { | ||
75 | .name = DRV_NAME, | ||
76 | .owner = THIS_MODULE, | ||
77 | }, | ||
78 | .probe = omap_hdmi_probe, | ||
79 | .remove = omap_hdmi_remove, | ||
80 | }; | ||
81 | |||
82 | module_platform_driver(omap_hdmi_driver); | ||
83 | |||
84 | MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); | ||
85 | MODULE_DESCRIPTION("OMAP HDMI machine ASoC driver"); | ||
86 | MODULE_LICENSE("GPL"); | ||
87 | MODULE_ALIAS("platform:" DRV_NAME); | ||
diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c deleted file mode 100644 index eb9c39299f81..000000000000 --- a/sound/soc/omap/omap-hdmi.c +++ /dev/null | |||
@@ -1,364 +0,0 @@ | |||
1 | /* | ||
2 | * omap-hdmi.c | ||
3 | * | ||
4 | * OMAP ALSA SoC DAI driver for HDMI audio on OMAP4 processors. | ||
5 | * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ | ||
6 | * Authors: Jorge Candelaria <jorge.candelaria@ti.com> | ||
7 | * Ricardo Neri <ricardo.neri@ti.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public License | ||
11 | * version 2 as published by the Free Software Foundation. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but | ||
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
21 | * 02110-1301 USA | ||
22 | * | ||
23 | */ | ||
24 | |||
25 | #include <linux/init.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/device.h> | ||
28 | #include <sound/core.h> | ||
29 | #include <sound/pcm.h> | ||
30 | #include <sound/pcm_params.h> | ||
31 | #include <sound/initval.h> | ||
32 | #include <sound/soc.h> | ||
33 | #include <sound/asound.h> | ||
34 | #include <sound/asoundef.h> | ||
35 | #include <sound/dmaengine_pcm.h> | ||
36 | #include <video/omapdss.h> | ||
37 | #include <sound/omap-pcm.h> | ||
38 | |||
39 | #include "omap-hdmi.h" | ||
40 | |||
41 | #define DRV_NAME "omap-hdmi-audio-dai" | ||
42 | |||
43 | struct hdmi_priv { | ||
44 | struct snd_dmaengine_dai_dma_data dma_data; | ||
45 | unsigned int dma_req; | ||
46 | struct omap_dss_audio dss_audio; | ||
47 | struct snd_aes_iec958 iec; | ||
48 | struct snd_cea_861_aud_if cea; | ||
49 | struct omap_dss_device *dssdev; | ||
50 | }; | ||
51 | |||
52 | static int omap_hdmi_dai_startup(struct snd_pcm_substream *substream, | ||
53 | struct snd_soc_dai *dai) | ||
54 | { | ||
55 | struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); | ||
56 | int err; | ||
57 | /* | ||
58 | * Make sure that the period bytes are multiple of the DMA packet size. | ||
59 | * Largest packet size we use is 32 32-bit words = 128 bytes | ||
60 | */ | ||
61 | err = snd_pcm_hw_constraint_step(substream->runtime, 0, | ||
62 | SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 128); | ||
63 | if (err < 0) { | ||
64 | dev_err(dai->dev, "could not apply constraint\n"); | ||
65 | return err; | ||
66 | } | ||
67 | |||
68 | if (!priv->dssdev->driver->audio_supported(priv->dssdev)) { | ||
69 | dev_err(dai->dev, "audio not supported\n"); | ||
70 | return -ENODEV; | ||
71 | } | ||
72 | |||
73 | snd_soc_dai_set_dma_data(dai, substream, &priv->dma_data); | ||
74 | |||
75 | return 0; | ||
76 | } | ||
77 | |||
78 | static int omap_hdmi_dai_prepare(struct snd_pcm_substream *substream, | ||
79 | struct snd_soc_dai *dai) | ||
80 | { | ||
81 | struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); | ||
82 | |||
83 | return priv->dssdev->driver->audio_enable(priv->dssdev); | ||
84 | } | ||
85 | |||
86 | static int omap_hdmi_dai_hw_params(struct snd_pcm_substream *substream, | ||
87 | struct snd_pcm_hw_params *params, | ||
88 | struct snd_soc_dai *dai) | ||
89 | { | ||
90 | struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); | ||
91 | struct snd_aes_iec958 *iec = &priv->iec; | ||
92 | struct snd_cea_861_aud_if *cea = &priv->cea; | ||
93 | int err = 0; | ||
94 | |||
95 | switch (params_format(params)) { | ||
96 | case SNDRV_PCM_FORMAT_S16_LE: | ||
97 | priv->dma_data.maxburst = 16; | ||
98 | break; | ||
99 | case SNDRV_PCM_FORMAT_S24_LE: | ||
100 | priv->dma_data.maxburst = 32; | ||
101 | break; | ||
102 | default: | ||
103 | dev_err(dai->dev, "format not supported!\n"); | ||
104 | return -EINVAL; | ||
105 | } | ||
106 | |||
107 | /* | ||
108 | * fill the IEC-60958 channel status word | ||
109 | */ | ||
110 | /* initialize the word bytes */ | ||
111 | memset(iec->status, 0, sizeof(iec->status)); | ||
112 | |||
113 | /* specify IEC-60958-3 (commercial use) */ | ||
114 | iec->status[0] &= ~IEC958_AES0_PROFESSIONAL; | ||
115 | |||
116 | /* specify that the audio is LPCM*/ | ||
117 | iec->status[0] &= ~IEC958_AES0_NONAUDIO; | ||
118 | |||
119 | iec->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; | ||
120 | |||
121 | iec->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; | ||
122 | |||
123 | iec->status[0] |= IEC958_AES1_PRO_MODE_NOTID; | ||
124 | |||
125 | iec->status[1] = IEC958_AES1_CON_GENERAL; | ||
126 | |||
127 | iec->status[2] |= IEC958_AES2_CON_SOURCE_UNSPEC; | ||
128 | |||
129 | iec->status[2] |= IEC958_AES2_CON_CHANNEL_UNSPEC; | ||
130 | |||
131 | switch (params_rate(params)) { | ||
132 | case 32000: | ||
133 | iec->status[3] |= IEC958_AES3_CON_FS_32000; | ||
134 | break; | ||
135 | case 44100: | ||
136 | iec->status[3] |= IEC958_AES3_CON_FS_44100; | ||
137 | break; | ||
138 | case 48000: | ||
139 | iec->status[3] |= IEC958_AES3_CON_FS_48000; | ||
140 | break; | ||
141 | case 88200: | ||
142 | iec->status[3] |= IEC958_AES3_CON_FS_88200; | ||
143 | break; | ||
144 | case 96000: | ||
145 | iec->status[3] |= IEC958_AES3_CON_FS_96000; | ||
146 | break; | ||
147 | case 176400: | ||
148 | iec->status[3] |= IEC958_AES3_CON_FS_176400; | ||
149 | break; | ||
150 | case 192000: | ||
151 | iec->status[3] |= IEC958_AES3_CON_FS_192000; | ||
152 | break; | ||
153 | default: | ||
154 | dev_err(dai->dev, "rate not supported!\n"); | ||
155 | return -EINVAL; | ||
156 | } | ||
157 | |||
158 | /* specify the clock accuracy */ | ||
159 | iec->status[3] |= IEC958_AES3_CON_CLOCK_1000PPM; | ||
160 | |||
161 | /* | ||
162 | * specify the word length. The same word length value can mean | ||
163 | * two different lengths. Hence, we need to specify the maximum | ||
164 | * word length as well. | ||
165 | */ | ||
166 | switch (params_format(params)) { | ||
167 | case SNDRV_PCM_FORMAT_S16_LE: | ||
168 | iec->status[4] |= IEC958_AES4_CON_WORDLEN_20_16; | ||
169 | iec->status[4] &= ~IEC958_AES4_CON_MAX_WORDLEN_24; | ||
170 | break; | ||
171 | case SNDRV_PCM_FORMAT_S24_LE: | ||
172 | iec->status[4] |= IEC958_AES4_CON_WORDLEN_24_20; | ||
173 | iec->status[4] |= IEC958_AES4_CON_MAX_WORDLEN_24; | ||
174 | break; | ||
175 | default: | ||
176 | dev_err(dai->dev, "format not supported!\n"); | ||
177 | return -EINVAL; | ||
178 | } | ||
179 | |||
180 | /* | ||
181 | * Fill the CEA-861 audio infoframe (see spec for details) | ||
182 | */ | ||
183 | |||
184 | cea->db1_ct_cc = (params_channels(params) - 1) | ||
185 | & CEA861_AUDIO_INFOFRAME_DB1CC; | ||
186 | cea->db1_ct_cc |= CEA861_AUDIO_INFOFRAME_DB1CT_FROM_STREAM; | ||
187 | |||
188 | cea->db2_sf_ss = CEA861_AUDIO_INFOFRAME_DB2SF_FROM_STREAM; | ||
189 | cea->db2_sf_ss |= CEA861_AUDIO_INFOFRAME_DB2SS_FROM_STREAM; | ||
190 | |||
191 | cea->db3 = 0; /* not used, all zeros */ | ||
192 | |||
193 | /* | ||
194 | * The OMAP HDMI IP requires to use the 8-channel channel code when | ||
195 | * transmitting more than two channels. | ||
196 | */ | ||
197 | if (params_channels(params) == 2) | ||
198 | cea->db4_ca = 0x0; | ||
199 | else | ||
200 | cea->db4_ca = 0x13; | ||
201 | |||
202 | cea->db5_dminh_lsv = CEA861_AUDIO_INFOFRAME_DB5_DM_INH_PROHIBITED; | ||
203 | /* the expression is trivial but makes clear what we are doing */ | ||
204 | cea->db5_dminh_lsv |= (0 & CEA861_AUDIO_INFOFRAME_DB5_LSV); | ||
205 | |||
206 | priv->dss_audio.iec = iec; | ||
207 | priv->dss_audio.cea = cea; | ||
208 | |||
209 | err = priv->dssdev->driver->audio_config(priv->dssdev, | ||
210 | &priv->dss_audio); | ||
211 | |||
212 | return err; | ||
213 | } | ||
214 | |||
215 | static int omap_hdmi_dai_trigger(struct snd_pcm_substream *substream, int cmd, | ||
216 | struct snd_soc_dai *dai) | ||
217 | { | ||
218 | struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); | ||
219 | int err = 0; | ||
220 | |||
221 | switch (cmd) { | ||
222 | case SNDRV_PCM_TRIGGER_START: | ||
223 | case SNDRV_PCM_TRIGGER_RESUME: | ||
224 | case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: | ||
225 | err = priv->dssdev->driver->audio_start(priv->dssdev); | ||
226 | break; | ||
227 | case SNDRV_PCM_TRIGGER_STOP: | ||
228 | case SNDRV_PCM_TRIGGER_SUSPEND: | ||
229 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | ||
230 | priv->dssdev->driver->audio_stop(priv->dssdev); | ||
231 | break; | ||
232 | default: | ||
233 | err = -EINVAL; | ||
234 | } | ||
235 | return err; | ||
236 | } | ||
237 | |||
238 | static void omap_hdmi_dai_shutdown(struct snd_pcm_substream *substream, | ||
239 | struct snd_soc_dai *dai) | ||
240 | { | ||
241 | struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); | ||
242 | |||
243 | priv->dssdev->driver->audio_disable(priv->dssdev); | ||
244 | } | ||
245 | |||
246 | static const struct snd_soc_dai_ops omap_hdmi_dai_ops = { | ||
247 | .startup = omap_hdmi_dai_startup, | ||
248 | .hw_params = omap_hdmi_dai_hw_params, | ||
249 | .prepare = omap_hdmi_dai_prepare, | ||
250 | .trigger = omap_hdmi_dai_trigger, | ||
251 | .shutdown = omap_hdmi_dai_shutdown, | ||
252 | }; | ||
253 | |||
254 | static struct snd_soc_dai_driver omap_hdmi_dai = { | ||
255 | .playback = { | ||
256 | .channels_min = 2, | ||
257 | .channels_max = 8, | ||
258 | .rates = OMAP_HDMI_RATES, | ||
259 | .formats = OMAP_HDMI_FORMATS, | ||
260 | }, | ||
261 | .ops = &omap_hdmi_dai_ops, | ||
262 | }; | ||
263 | |||
264 | static const struct snd_soc_component_driver omap_hdmi_component = { | ||
265 | .name = DRV_NAME, | ||
266 | }; | ||
267 | |||
268 | static int omap_hdmi_probe(struct platform_device *pdev) | ||
269 | { | ||
270 | int ret; | ||
271 | struct resource *hdmi_rsrc; | ||
272 | struct hdmi_priv *hdmi_data; | ||
273 | bool hdmi_dev_found = false; | ||
274 | |||
275 | hdmi_data = devm_kzalloc(&pdev->dev, sizeof(*hdmi_data), GFP_KERNEL); | ||
276 | if (hdmi_data == NULL) { | ||
277 | dev_err(&pdev->dev, "Cannot allocate memory for HDMI data\n"); | ||
278 | return -ENOMEM; | ||
279 | } | ||
280 | |||
281 | hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
282 | if (!hdmi_rsrc) { | ||
283 | dev_err(&pdev->dev, "Cannot obtain IORESOURCE_MEM HDMI\n"); | ||
284 | return -ENODEV; | ||
285 | } | ||
286 | |||
287 | hdmi_data->dma_data.addr = hdmi_rsrc->start + OMAP_HDMI_AUDIO_DMA_PORT; | ||
288 | |||
289 | hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_DMA, 0); | ||
290 | if (!hdmi_rsrc) { | ||
291 | dev_err(&pdev->dev, "Cannot obtain IORESOURCE_DMA HDMI\n"); | ||
292 | return -ENODEV; | ||
293 | } | ||
294 | |||
295 | hdmi_data->dma_req = hdmi_rsrc->start; | ||
296 | hdmi_data->dma_data.filter_data = &hdmi_data->dma_req; | ||
297 | hdmi_data->dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; | ||
298 | |||
299 | /* | ||
300 | * TODO: We assume that there is only one DSS HDMI device. Future | ||
301 | * OMAP implementations may support more than one HDMI devices and | ||
302 | * we should provided separate audio support for all of them. | ||
303 | */ | ||
304 | /* Find an HDMI device. */ | ||
305 | for_each_dss_dev(hdmi_data->dssdev) { | ||
306 | omap_dss_get_device(hdmi_data->dssdev); | ||
307 | |||
308 | if (!hdmi_data->dssdev->driver) { | ||
309 | omap_dss_put_device(hdmi_data->dssdev); | ||
310 | continue; | ||
311 | } | ||
312 | |||
313 | if (hdmi_data->dssdev->type == OMAP_DISPLAY_TYPE_HDMI) { | ||
314 | hdmi_dev_found = true; | ||
315 | break; | ||
316 | } | ||
317 | } | ||
318 | |||
319 | if (!hdmi_dev_found) { | ||
320 | dev_err(&pdev->dev, "no driver for HDMI display found\n"); | ||
321 | return -ENODEV; | ||
322 | } | ||
323 | |||
324 | dev_set_drvdata(&pdev->dev, hdmi_data); | ||
325 | ret = snd_soc_register_component(&pdev->dev, &omap_hdmi_component, | ||
326 | &omap_hdmi_dai, 1); | ||
327 | |||
328 | if (ret) | ||
329 | return ret; | ||
330 | |||
331 | return omap_pcm_platform_register(&pdev->dev); | ||
332 | } | ||
333 | |||
334 | static int omap_hdmi_remove(struct platform_device *pdev) | ||
335 | { | ||
336 | struct hdmi_priv *hdmi_data = dev_get_drvdata(&pdev->dev); | ||
337 | |||
338 | snd_soc_unregister_component(&pdev->dev); | ||
339 | |||
340 | if (hdmi_data == NULL) { | ||
341 | dev_err(&pdev->dev, "cannot obtain HDMi data\n"); | ||
342 | return -ENODEV; | ||
343 | } | ||
344 | |||
345 | omap_dss_put_device(hdmi_data->dssdev); | ||
346 | return 0; | ||
347 | } | ||
348 | |||
349 | static struct platform_driver hdmi_dai_driver = { | ||
350 | .driver = { | ||
351 | .name = DRV_NAME, | ||
352 | .owner = THIS_MODULE, | ||
353 | }, | ||
354 | .probe = omap_hdmi_probe, | ||
355 | .remove = omap_hdmi_remove, | ||
356 | }; | ||
357 | |||
358 | module_platform_driver(hdmi_dai_driver); | ||
359 | |||
360 | MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>"); | ||
361 | MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); | ||
362 | MODULE_DESCRIPTION("OMAP HDMI SoC Interface"); | ||
363 | MODULE_LICENSE("GPL"); | ||
364 | MODULE_ALIAS("platform:" DRV_NAME); | ||
diff --git a/sound/soc/omap/omap-hdmi.h b/sound/soc/omap/omap-hdmi.h deleted file mode 100644 index 6ad2bf4f2697..000000000000 --- a/sound/soc/omap/omap-hdmi.h +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /* | ||
2 | * omap-hdmi.h | ||
3 | * | ||
4 | * Definitions for OMAP ALSA SoC DAI driver for HDMI audio on OMAP4 processors. | ||
5 | * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ | ||
6 | * Authors: Jorge Candelaria <jorge.candelaria@ti.com> | ||
7 | * Ricardo Neri <ricardo.neri@ti.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public License | ||
11 | * version 2 as published by the Free Software Foundation. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but | ||
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
21 | * 02110-1301 USA | ||
22 | * | ||
23 | */ | ||
24 | |||
25 | #ifndef __OMAP_HDMI_H__ | ||
26 | #define __OMAP_HDMI_H__ | ||
27 | |||
28 | #define OMAP_HDMI_AUDIO_DMA_PORT 0x8c | ||
29 | |||
30 | #define OMAP_HDMI_RATES (SNDRV_PCM_RATE_32000 | \ | ||
31 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | \ | ||
32 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \ | ||
33 | SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000) | ||
34 | |||
35 | #define OMAP_HDMI_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \ | ||
36 | SNDRV_PCM_FMTBIT_S24_LE) | ||
37 | |||
38 | #endif | ||
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index bd3ef2a88be0..8b79cafab1e2 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -831,7 +831,6 @@ static int asoc_mcbsp_remove(struct platform_device *pdev) | |||
831 | static struct platform_driver asoc_mcbsp_driver = { | 831 | static struct platform_driver asoc_mcbsp_driver = { |
832 | .driver = { | 832 | .driver = { |
833 | .name = "omap-mcbsp", | 833 | .name = "omap-mcbsp", |
834 | .owner = THIS_MODULE, | ||
835 | .of_match_table = omap_mcbsp_of_match, | 834 | .of_match_table = omap_mcbsp_of_match, |
836 | }, | 835 | }, |
837 | 836 | ||
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c index f0e2ebeab02b..b837265ac3e9 100644 --- a/sound/soc/omap/omap-mcpdm.c +++ b/sound/soc/omap/omap-mcpdm.c | |||
@@ -512,7 +512,6 @@ MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match); | |||
512 | static struct platform_driver asoc_mcpdm_driver = { | 512 | static struct platform_driver asoc_mcpdm_driver = { |
513 | .driver = { | 513 | .driver = { |
514 | .name = "omap-mcpdm", | 514 | .name = "omap-mcpdm", |
515 | .owner = THIS_MODULE, | ||
516 | .of_match_table = omap_mcpdm_of_match, | 515 | .of_match_table = omap_mcpdm_of_match, |
517 | }, | 516 | }, |
518 | 517 | ||
diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c index 4336d1831485..5e551c762b7a 100644 --- a/sound/soc/omap/omap-twl4030.c +++ b/sound/soc/omap/omap-twl4030.c | |||
@@ -375,7 +375,6 @@ MODULE_DEVICE_TABLE(of, omap_twl4030_of_match); | |||
375 | static struct platform_driver omap_twl4030_driver = { | 375 | static struct platform_driver omap_twl4030_driver = { |
376 | .driver = { | 376 | .driver = { |
377 | .name = "omap-twl4030", | 377 | .name = "omap-twl4030", |
378 | .owner = THIS_MODULE, | ||
379 | .pm = &snd_soc_pm_ops, | 378 | .pm = &snd_soc_pm_ops, |
380 | .of_match_table = omap_twl4030_of_match, | 379 | .of_match_table = omap_twl4030_of_match, |
381 | }, | 380 | }, |
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index b10ae8074461..04896d6252a2 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c | |||
@@ -519,7 +519,6 @@ MODULE_DEVICE_TABLE(of, rx51_audio_of_match); | |||
519 | static struct platform_driver rx51_soc_driver = { | 519 | static struct platform_driver rx51_soc_driver = { |
520 | .driver = { | 520 | .driver = { |
521 | .name = "rx51-audio", | 521 | .name = "rx51-audio", |
522 | .owner = THIS_MODULE, | ||
523 | .of_match_table = of_match_ptr(rx51_audio_of_match), | 522 | .of_match_table = of_match_ptr(rx51_audio_of_match), |
524 | }, | 523 | }, |
525 | .probe = rx51_soc_probe, | 524 | .probe = rx51_soc_probe, |
diff --git a/sound/soc/pxa/brownstone.c b/sound/soc/pxa/brownstone.c index c8dd53f9c35d..79936e3e80e7 100644 --- a/sound/soc/pxa/brownstone.c +++ b/sound/soc/pxa/brownstone.c | |||
@@ -155,7 +155,6 @@ static int brownstone_remove(struct platform_device *pdev) | |||
155 | static struct platform_driver mmp_driver = { | 155 | static struct platform_driver mmp_driver = { |
156 | .driver = { | 156 | .driver = { |
157 | .name = "brownstone-audio", | 157 | .name = "brownstone-audio", |
158 | .owner = THIS_MODULE, | ||
159 | .pm = &snd_soc_pm_ops, | 158 | .pm = &snd_soc_pm_ops, |
160 | }, | 159 | }, |
161 | .probe = brownstone_probe, | 160 | .probe = brownstone_probe, |
diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c index 5a88136aa800..b7cd0a71fd70 100644 --- a/sound/soc/pxa/corgi.c +++ b/sound/soc/pxa/corgi.c | |||
@@ -327,7 +327,6 @@ static int corgi_remove(struct platform_device *pdev) | |||
327 | static struct platform_driver corgi_driver = { | 327 | static struct platform_driver corgi_driver = { |
328 | .driver = { | 328 | .driver = { |
329 | .name = "corgi-audio", | 329 | .name = "corgi-audio", |
330 | .owner = THIS_MODULE, | ||
331 | .pm = &snd_soc_pm_ops, | 330 | .pm = &snd_soc_pm_ops, |
332 | }, | 331 | }, |
333 | .probe = corgi_probe, | 332 | .probe = corgi_probe, |
diff --git a/sound/soc/pxa/e740_wm9705.c b/sound/soc/pxa/e740_wm9705.c index c29fedab2f49..7c691aae8af2 100644 --- a/sound/soc/pxa/e740_wm9705.c +++ b/sound/soc/pxa/e740_wm9705.c | |||
@@ -177,7 +177,6 @@ static int e740_remove(struct platform_device *pdev) | |||
177 | static struct platform_driver e740_driver = { | 177 | static struct platform_driver e740_driver = { |
178 | .driver = { | 178 | .driver = { |
179 | .name = "e740-audio", | 179 | .name = "e740-audio", |
180 | .owner = THIS_MODULE, | ||
181 | .pm = &snd_soc_pm_ops, | 180 | .pm = &snd_soc_pm_ops, |
182 | }, | 181 | }, |
183 | .probe = e740_probe, | 182 | .probe = e740_probe, |
diff --git a/sound/soc/pxa/e750_wm9705.c b/sound/soc/pxa/e750_wm9705.c index ee36aba88063..30544b65b5a8 100644 --- a/sound/soc/pxa/e750_wm9705.c +++ b/sound/soc/pxa/e750_wm9705.c | |||
@@ -159,7 +159,6 @@ static int e750_remove(struct platform_device *pdev) | |||
159 | static struct platform_driver e750_driver = { | 159 | static struct platform_driver e750_driver = { |
160 | .driver = { | 160 | .driver = { |
161 | .name = "e750-audio", | 161 | .name = "e750-audio", |
162 | .owner = THIS_MODULE, | ||
163 | .pm = &snd_soc_pm_ops, | 162 | .pm = &snd_soc_pm_ops, |
164 | }, | 163 | }, |
165 | .probe = e750_probe, | 164 | .probe = e750_probe, |
diff --git a/sound/soc/pxa/e800_wm9712.c b/sound/soc/pxa/e800_wm9712.c index 24c2078ce70b..45d4bd46fff6 100644 --- a/sound/soc/pxa/e800_wm9712.c +++ b/sound/soc/pxa/e800_wm9712.c | |||
@@ -140,7 +140,6 @@ static int e800_remove(struct platform_device *pdev) | |||
140 | static struct platform_driver e800_driver = { | 140 | static struct platform_driver e800_driver = { |
141 | .driver = { | 141 | .driver = { |
142 | .name = "e800-audio", | 142 | .name = "e800-audio", |
143 | .owner = THIS_MODULE, | ||
144 | .pm = &snd_soc_pm_ops, | 143 | .pm = &snd_soc_pm_ops, |
145 | }, | 144 | }, |
146 | .probe = e800_probe, | 145 | .probe = e800_probe, |
diff --git a/sound/soc/pxa/hx4700.c b/sound/soc/pxa/hx4700.c index 05559a725bec..ce26551052a3 100644 --- a/sound/soc/pxa/hx4700.c +++ b/sound/soc/pxa/hx4700.c | |||
@@ -226,7 +226,6 @@ static int hx4700_audio_remove(struct platform_device *pdev) | |||
226 | static struct platform_driver hx4700_audio_driver = { | 226 | static struct platform_driver hx4700_audio_driver = { |
227 | .driver = { | 227 | .driver = { |
228 | .name = "hx4700-audio", | 228 | .name = "hx4700-audio", |
229 | .owner = THIS_MODULE, | ||
230 | .pm = &snd_soc_pm_ops, | 229 | .pm = &snd_soc_pm_ops, |
231 | }, | 230 | }, |
232 | .probe = hx4700_audio_probe, | 231 | .probe = hx4700_audio_probe, |
diff --git a/sound/soc/pxa/imote2.c b/sound/soc/pxa/imote2.c index fd2f4eda1fd3..29fabbfd21f1 100644 --- a/sound/soc/pxa/imote2.c +++ b/sound/soc/pxa/imote2.c | |||
@@ -90,7 +90,6 @@ static int imote2_remove(struct platform_device *pdev) | |||
90 | static struct platform_driver imote2_driver = { | 90 | static struct platform_driver imote2_driver = { |
91 | .driver = { | 91 | .driver = { |
92 | .name = "imote2-audio", | 92 | .name = "imote2-audio", |
93 | .owner = THIS_MODULE, | ||
94 | .pm = &snd_soc_pm_ops, | 93 | .pm = &snd_soc_pm_ops, |
95 | }, | 94 | }, |
96 | .probe = imote2_probe, | 95 | .probe = imote2_probe, |
diff --git a/sound/soc/pxa/mioa701_wm9713.c b/sound/soc/pxa/mioa701_wm9713.c index a6b2be20cc0b..396dbd51a64f 100644 --- a/sound/soc/pxa/mioa701_wm9713.c +++ b/sound/soc/pxa/mioa701_wm9713.c | |||
@@ -202,7 +202,6 @@ static struct platform_driver mioa701_wm9713_driver = { | |||
202 | .remove = mioa701_wm9713_remove, | 202 | .remove = mioa701_wm9713_remove, |
203 | .driver = { | 203 | .driver = { |
204 | .name = "mioa701-wm9713", | 204 | .name = "mioa701-wm9713", |
205 | .owner = THIS_MODULE, | ||
206 | .pm = &snd_soc_pm_ops, | 205 | .pm = &snd_soc_pm_ops, |
207 | }, | 206 | }, |
208 | }; | 207 | }; |
diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 64e8b949a1a3..1eb45dcfb8e8 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c | |||
@@ -244,7 +244,6 @@ static int mmp_pcm_remove(struct platform_device *pdev) | |||
244 | static struct platform_driver mmp_pcm_driver = { | 244 | static struct platform_driver mmp_pcm_driver = { |
245 | .driver = { | 245 | .driver = { |
246 | .name = "mmp-pcm-audio", | 246 | .name = "mmp-pcm-audio", |
247 | .owner = THIS_MODULE, | ||
248 | }, | 247 | }, |
249 | 248 | ||
250 | .probe = mmp_pcm_probe, | 249 | .probe = mmp_pcm_probe, |
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c index 5bf5f1f7cac5..eca60c29791a 100644 --- a/sound/soc/pxa/mmp-sspa.c +++ b/sound/soc/pxa/mmp-sspa.c | |||
@@ -472,7 +472,6 @@ static int asoc_mmp_sspa_remove(struct platform_device *pdev) | |||
472 | static struct platform_driver asoc_mmp_sspa_driver = { | 472 | static struct platform_driver asoc_mmp_sspa_driver = { |
473 | .driver = { | 473 | .driver = { |
474 | .name = "mmp-sspa-dai", | 474 | .name = "mmp-sspa-dai", |
475 | .owner = THIS_MODULE, | ||
476 | }, | 475 | }, |
477 | .probe = asoc_mmp_sspa_probe, | 476 | .probe = asoc_mmp_sspa_probe, |
478 | .remove = asoc_mmp_sspa_remove, | 477 | .remove = asoc_mmp_sspa_remove, |
diff --git a/sound/soc/pxa/palm27x.c b/sound/soc/pxa/palm27x.c index 17f9521ff6ea..1eebca2f0a97 100644 --- a/sound/soc/pxa/palm27x.c +++ b/sound/soc/pxa/palm27x.c | |||
@@ -172,7 +172,6 @@ static struct platform_driver palm27x_wm9712_driver = { | |||
172 | .remove = palm27x_asoc_remove, | 172 | .remove = palm27x_asoc_remove, |
173 | .driver = { | 173 | .driver = { |
174 | .name = "palm27x-asoc", | 174 | .name = "palm27x-asoc", |
175 | .owner = THIS_MODULE, | ||
176 | .pm = &snd_soc_pm_ops, | 175 | .pm = &snd_soc_pm_ops, |
177 | }, | 176 | }, |
178 | }; | 177 | }; |
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c index 21f340065318..0fce8c420e96 100644 --- a/sound/soc/pxa/poodle.c +++ b/sound/soc/pxa/poodle.c | |||
@@ -296,7 +296,6 @@ static int poodle_remove(struct platform_device *pdev) | |||
296 | static struct platform_driver poodle_driver = { | 296 | static struct platform_driver poodle_driver = { |
297 | .driver = { | 297 | .driver = { |
298 | .name = "poodle-audio", | 298 | .name = "poodle-audio", |
299 | .owner = THIS_MODULE, | ||
300 | .pm = &snd_soc_pm_ops, | 299 | .pm = &snd_soc_pm_ops, |
301 | }, | 300 | }, |
302 | .probe = poodle_probe, | 301 | .probe = poodle_probe, |
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index cbba063a7210..fbe2e93d6edc 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -826,7 +826,6 @@ static int asoc_ssp_remove(struct platform_device *pdev) | |||
826 | static struct platform_driver asoc_ssp_driver = { | 826 | static struct platform_driver asoc_ssp_driver = { |
827 | .driver = { | 827 | .driver = { |
828 | .name = "pxa-ssp-dai", | 828 | .name = "pxa-ssp-dai", |
829 | .owner = THIS_MODULE, | ||
830 | .of_match_table = of_match_ptr(pxa_ssp_of_ids), | 829 | .of_match_table = of_match_ptr(pxa_ssp_of_ids), |
831 | }, | 830 | }, |
832 | 831 | ||
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 73ca2820c08c..1f6054650991 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -261,7 +261,6 @@ static struct platform_driver pxa2xx_ac97_driver = { | |||
261 | .remove = pxa2xx_ac97_dev_remove, | 261 | .remove = pxa2xx_ac97_dev_remove, |
262 | .driver = { | 262 | .driver = { |
263 | .name = "pxa2xx-ac97", | 263 | .name = "pxa2xx-ac97", |
264 | .owner = THIS_MODULE, | ||
265 | #ifdef CONFIG_PM_SLEEP | 264 | #ifdef CONFIG_PM_SLEEP |
266 | .pm = &pxa2xx_ac97_pm_ops, | 265 | .pm = &pxa2xx_ac97_pm_ops, |
267 | #endif | 266 | #endif |
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index c0d648d3339f..e68290c15328 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
@@ -383,7 +383,6 @@ static struct platform_driver pxa2xx_i2s_driver = { | |||
383 | 383 | ||
384 | .driver = { | 384 | .driver = { |
385 | .name = "pxa2xx-i2s", | 385 | .name = "pxa2xx-i2s", |
386 | .owner = THIS_MODULE, | ||
387 | }, | 386 | }, |
388 | }; | 387 | }; |
389 | 388 | ||
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index 42f2f0175981..a51c9da66614 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c | |||
@@ -143,7 +143,6 @@ static const struct of_device_id snd_soc_pxa_audio_match[] = { | |||
143 | static struct platform_driver pxa_pcm_driver = { | 143 | static struct platform_driver pxa_pcm_driver = { |
144 | .driver = { | 144 | .driver = { |
145 | .name = "pxa-pcm-audio", | 145 | .name = "pxa-pcm-audio", |
146 | .owner = THIS_MODULE, | ||
147 | .of_match_table = of_match_ptr(snd_soc_pxa_audio_match), | 146 | .of_match_table = of_match_ptr(snd_soc_pxa_audio_match), |
148 | }, | 147 | }, |
149 | 148 | ||
diff --git a/sound/soc/pxa/tosa.c b/sound/soc/pxa/tosa.c index 4a956d1cb269..cb49284e853a 100644 --- a/sound/soc/pxa/tosa.c +++ b/sound/soc/pxa/tosa.c | |||
@@ -265,7 +265,6 @@ static int tosa_remove(struct platform_device *pdev) | |||
265 | static struct platform_driver tosa_driver = { | 265 | static struct platform_driver tosa_driver = { |
266 | .driver = { | 266 | .driver = { |
267 | .name = "tosa-audio", | 267 | .name = "tosa-audio", |
268 | .owner = THIS_MODULE, | ||
269 | .pm = &snd_soc_pm_ops, | 268 | .pm = &snd_soc_pm_ops, |
270 | }, | 269 | }, |
271 | .probe = tosa_probe, | 270 | .probe = tosa_probe, |
diff --git a/sound/soc/pxa/ttc-dkb.c b/sound/soc/pxa/ttc-dkb.c index 9d7c5b7e9539..e3d7257ad09c 100644 --- a/sound/soc/pxa/ttc-dkb.c +++ b/sound/soc/pxa/ttc-dkb.c | |||
@@ -155,7 +155,6 @@ static int ttc_dkb_remove(struct platform_device *pdev) | |||
155 | static struct platform_driver ttc_dkb_driver = { | 155 | static struct platform_driver ttc_dkb_driver = { |
156 | .driver = { | 156 | .driver = { |
157 | .name = "ttc-dkb-audio", | 157 | .name = "ttc-dkb-audio", |
158 | .owner = THIS_MODULE, | ||
159 | .pm = &snd_soc_pm_ops, | 158 | .pm = &snd_soc_pm_ops, |
160 | }, | 159 | }, |
161 | .probe = ttc_dkb_probe, | 160 | .probe = ttc_dkb_probe, |
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index c74ba37f862c..26ec5117b35c 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c | |||
@@ -528,7 +528,6 @@ static struct platform_driver rockchip_i2s_driver = { | |||
528 | .remove = rockchip_i2s_remove, | 528 | .remove = rockchip_i2s_remove, |
529 | .driver = { | 529 | .driver = { |
530 | .name = DRV_NAME, | 530 | .name = DRV_NAME, |
531 | .owner = THIS_MODULE, | ||
532 | .of_match_table = of_match_ptr(rockchip_i2s_match), | 531 | .of_match_table = of_match_ptr(rockchip_i2s_match), |
533 | .pm = &rockchip_i2s_pm_ops, | 532 | .pm = &rockchip_i2s_pm_ops, |
534 | }, | 533 | }, |
diff --git a/sound/soc/samsung/ac97.c b/sound/soc/samsung/ac97.c index 7952a625669d..e4145509d63c 100644 --- a/sound/soc/samsung/ac97.c +++ b/sound/soc/samsung/ac97.c | |||
@@ -442,7 +442,6 @@ static struct platform_driver s3c_ac97_driver = { | |||
442 | .remove = s3c_ac97_remove, | 442 | .remove = s3c_ac97_remove, |
443 | .driver = { | 443 | .driver = { |
444 | .name = "samsung-ac97", | 444 | .name = "samsung-ac97", |
445 | .owner = THIS_MODULE, | ||
446 | }, | 445 | }, |
447 | }; | 446 | }; |
448 | 447 | ||
diff --git a/sound/soc/samsung/bells.c b/sound/soc/samsung/bells.c index 5b21207cf551..e5f05e62fa3c 100644 --- a/sound/soc/samsung/bells.c +++ b/sound/soc/samsung/bells.c | |||
@@ -445,7 +445,6 @@ static int bells_probe(struct platform_device *pdev) | |||
445 | static struct platform_driver bells_driver = { | 445 | static struct platform_driver bells_driver = { |
446 | .driver = { | 446 | .driver = { |
447 | .name = "bells", | 447 | .name = "bells", |
448 | .owner = THIS_MODULE, | ||
449 | .pm = &snd_soc_pm_ops, | 448 | .pm = &snd_soc_pm_ops, |
450 | }, | 449 | }, |
451 | .probe = bells_probe, | 450 | .probe = bells_probe, |
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index eca17dc01ef7..b5a80c528d86 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1135,7 +1135,7 @@ static inline const struct samsung_i2s_dai_data *samsung_i2s_get_driver_data( | |||
1135 | platform_get_device_id(pdev)->driver_data; | 1135 | platform_get_device_id(pdev)->driver_data; |
1136 | } | 1136 | } |
1137 | 1137 | ||
1138 | #ifdef CONFIG_PM_RUNTIME | 1138 | #ifdef CONFIG_PM |
1139 | static int i2s_runtime_suspend(struct device *dev) | 1139 | static int i2s_runtime_suspend(struct device *dev) |
1140 | { | 1140 | { |
1141 | struct i2s_dai *i2s = dev_get_drvdata(dev); | 1141 | struct i2s_dai *i2s = dev_get_drvdata(dev); |
@@ -1153,7 +1153,7 @@ static int i2s_runtime_resume(struct device *dev) | |||
1153 | 1153 | ||
1154 | return 0; | 1154 | return 0; |
1155 | } | 1155 | } |
1156 | #endif /* CONFIG_PM_RUNTIME */ | 1156 | #endif /* CONFIG_PM */ |
1157 | 1157 | ||
1158 | static int samsung_i2s_probe(struct platform_device *pdev) | 1158 | static int samsung_i2s_probe(struct platform_device *pdev) |
1159 | { | 1159 | { |
@@ -1472,7 +1472,6 @@ static struct platform_driver samsung_i2s_driver = { | |||
1472 | .id_table = samsung_i2s_driver_ids, | 1472 | .id_table = samsung_i2s_driver_ids, |
1473 | .driver = { | 1473 | .driver = { |
1474 | .name = "samsung-i2s", | 1474 | .name = "samsung-i2s", |
1475 | .owner = THIS_MODULE, | ||
1476 | .of_match_table = of_match_ptr(exynos_i2s_match), | 1475 | .of_match_table = of_match_ptr(exynos_i2s_match), |
1477 | .pm = &samsung_i2s_pm, | 1476 | .pm = &samsung_i2s_pm, |
1478 | }, | 1477 | }, |
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c index 0e8dd985fcb3..4ed29ffc1c54 100644 --- a/sound/soc/samsung/idma.c +++ b/sound/soc/samsung/idma.c | |||
@@ -418,7 +418,6 @@ static int asoc_idma_platform_probe(struct platform_device *pdev) | |||
418 | static struct platform_driver asoc_idma_driver = { | 418 | static struct platform_driver asoc_idma_driver = { |
419 | .driver = { | 419 | .driver = { |
420 | .name = "samsung-idma", | 420 | .name = "samsung-idma", |
421 | .owner = THIS_MODULE, | ||
422 | }, | 421 | }, |
423 | 422 | ||
424 | .probe = asoc_idma_platform_probe, | 423 | .probe = asoc_idma_platform_probe, |
diff --git a/sound/soc/samsung/littlemill.c b/sound/soc/samsung/littlemill.c index 840787e63cb1..141519c21e21 100644 --- a/sound/soc/samsung/littlemill.c +++ b/sound/soc/samsung/littlemill.c | |||
@@ -315,7 +315,6 @@ static int littlemill_probe(struct platform_device *pdev) | |||
315 | static struct platform_driver littlemill_driver = { | 315 | static struct platform_driver littlemill_driver = { |
316 | .driver = { | 316 | .driver = { |
317 | .name = "littlemill", | 317 | .name = "littlemill", |
318 | .owner = THIS_MODULE, | ||
319 | .pm = &snd_soc_pm_ops, | 318 | .pm = &snd_soc_pm_ops, |
320 | }, | 319 | }, |
321 | .probe = littlemill_probe, | 320 | .probe = littlemill_probe, |
diff --git a/sound/soc/samsung/lowland.c b/sound/soc/samsung/lowland.c index bd5f0d643a86..243dea7ba38f 100644 --- a/sound/soc/samsung/lowland.c +++ b/sound/soc/samsung/lowland.c | |||
@@ -198,7 +198,6 @@ static int lowland_probe(struct platform_device *pdev) | |||
198 | static struct platform_driver lowland_driver = { | 198 | static struct platform_driver lowland_driver = { |
199 | .driver = { | 199 | .driver = { |
200 | .name = "lowland", | 200 | .name = "lowland", |
201 | .owner = THIS_MODULE, | ||
202 | .pm = &snd_soc_pm_ops, | 201 | .pm = &snd_soc_pm_ops, |
203 | }, | 202 | }, |
204 | .probe = lowland_probe, | 203 | .probe = lowland_probe, |
diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c index d7640e72cb1d..fa4f1d2f69bf 100644 --- a/sound/soc/samsung/odroidx2_max98090.c +++ b/sound/soc/samsung/odroidx2_max98090.c | |||
@@ -162,7 +162,6 @@ static int odroidx2_audio_remove(struct platform_device *pdev) | |||
162 | static struct platform_driver odroidx2_audio_driver = { | 162 | static struct platform_driver odroidx2_audio_driver = { |
163 | .driver = { | 163 | .driver = { |
164 | .name = "odroidx2-audio", | 164 | .name = "odroidx2-audio", |
165 | .owner = THIS_MODULE, | ||
166 | .of_match_table = odroidx2_audio_of_match, | 165 | .of_match_table = odroidx2_audio_of_match, |
167 | .pm = &snd_soc_pm_ops, | 166 | .pm = &snd_soc_pm_ops, |
168 | }, | 167 | }, |
diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c index bac034b15a27..b320a9d3fbf8 100644 --- a/sound/soc/samsung/pcm.c +++ b/sound/soc/samsung/pcm.c | |||
@@ -626,7 +626,6 @@ static struct platform_driver s3c_pcm_driver = { | |||
626 | .remove = s3c_pcm_dev_remove, | 626 | .remove = s3c_pcm_dev_remove, |
627 | .driver = { | 627 | .driver = { |
628 | .name = "samsung-pcm", | 628 | .name = "samsung-pcm", |
629 | .owner = THIS_MODULE, | ||
630 | }, | 629 | }, |
631 | }; | 630 | }; |
632 | 631 | ||
diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c index 27b339c6580e..2b766d212ce0 100644 --- a/sound/soc/samsung/s3c2412-i2s.c +++ b/sound/soc/samsung/s3c2412-i2s.c | |||
@@ -180,7 +180,6 @@ static struct platform_driver s3c2412_iis_driver = { | |||
180 | .probe = s3c2412_iis_dev_probe, | 180 | .probe = s3c2412_iis_dev_probe, |
181 | .driver = { | 181 | .driver = { |
182 | .name = "s3c2412-iis", | 182 | .name = "s3c2412-iis", |
183 | .owner = THIS_MODULE, | ||
184 | }, | 183 | }, |
185 | }; | 184 | }; |
186 | 185 | ||
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index e87d9a2053b8..326d3c3804e3 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c | |||
@@ -485,7 +485,6 @@ static struct platform_driver s3c24xx_iis_driver = { | |||
485 | .probe = s3c24xx_iis_dev_probe, | 485 | .probe = s3c24xx_iis_dev_probe, |
486 | .driver = { | 486 | .driver = { |
487 | .name = "s3c24xx-iis", | 487 | .name = "s3c24xx-iis", |
488 | .owner = THIS_MODULE, | ||
489 | }, | 488 | }, |
490 | }; | 489 | }; |
491 | 490 | ||
diff --git a/sound/soc/samsung/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c index 2d30b7b6818a..7ac924c595bf 100644 --- a/sound/soc/samsung/s3c24xx_simtec_hermes.c +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c | |||
@@ -99,7 +99,6 @@ static int simtec_audio_hermes_probe(struct platform_device *pd) | |||
99 | 99 | ||
100 | static struct platform_driver simtec_audio_hermes_platdrv = { | 100 | static struct platform_driver simtec_audio_hermes_platdrv = { |
101 | .driver = { | 101 | .driver = { |
102 | .owner = THIS_MODULE, | ||
103 | .name = "s3c24xx-simtec-hermes-snd", | 102 | .name = "s3c24xx-simtec-hermes-snd", |
104 | .pm = simtec_audio_pm, | 103 | .pm = simtec_audio_pm, |
105 | }, | 104 | }, |
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index 83f6c7d49cd6..b4ed2fc1a65c 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |||
@@ -87,7 +87,6 @@ static int simtec_audio_tlv320aic23_probe(struct platform_device *pd) | |||
87 | 87 | ||
88 | static struct platform_driver simtec_audio_tlv320aic23_driver = { | 88 | static struct platform_driver simtec_audio_tlv320aic23_driver = { |
89 | .driver = { | 89 | .driver = { |
90 | .owner = THIS_MODULE, | ||
91 | .name = "s3c24xx-simtec-tlv320aic23", | 90 | .name = "s3c24xx-simtec-tlv320aic23", |
92 | .pm = simtec_audio_pm, | 91 | .pm = simtec_audio_pm, |
93 | }, | 92 | }, |
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 1b7b52b0af97..9c6f7db56f60 100644 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c | |||
@@ -340,7 +340,6 @@ static struct platform_driver s3c24xx_uda134x_driver = { | |||
340 | .remove = s3c24xx_uda134x_remove, | 340 | .remove = s3c24xx_uda134x_remove, |
341 | .driver = { | 341 | .driver = { |
342 | .name = "s3c24xx_uda134x", | 342 | .name = "s3c24xx_uda134x", |
343 | .owner = THIS_MODULE, | ||
344 | }, | 343 | }, |
345 | }; | 344 | }; |
346 | 345 | ||
diff --git a/sound/soc/samsung/smdk_wm8580pcm.c b/sound/soc/samsung/smdk_wm8580pcm.c index 63d079303561..05c609c62de9 100644 --- a/sound/soc/samsung/smdk_wm8580pcm.c +++ b/sound/soc/samsung/smdk_wm8580pcm.c | |||
@@ -173,7 +173,6 @@ static int snd_smdk_probe(struct platform_device *pdev) | |||
173 | 173 | ||
174 | static struct platform_driver snd_smdk_driver = { | 174 | static struct platform_driver snd_smdk_driver = { |
175 | .driver = { | 175 | .driver = { |
176 | .owner = THIS_MODULE, | ||
177 | .name = "samsung-smdk-pcm", | 176 | .name = "samsung-smdk-pcm", |
178 | }, | 177 | }, |
179 | .probe = snd_smdk_probe, | 178 | .probe = snd_smdk_probe, |
diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c index 3d6272a8cad2..d38595fbdab7 100644 --- a/sound/soc/samsung/smdk_wm8994.c +++ b/sound/soc/samsung/smdk_wm8994.c | |||
@@ -191,7 +191,6 @@ static int smdk_audio_probe(struct platform_device *pdev) | |||
191 | static struct platform_driver smdk_audio_driver = { | 191 | static struct platform_driver smdk_audio_driver = { |
192 | .driver = { | 192 | .driver = { |
193 | .name = "smdk-audio-wm8994", | 193 | .name = "smdk-audio-wm8994", |
194 | .owner = THIS_MODULE, | ||
195 | .of_match_table = of_match_ptr(samsung_wm8994_of_match), | 194 | .of_match_table = of_match_ptr(samsung_wm8994_of_match), |
196 | .pm = &snd_soc_pm_ops, | 195 | .pm = &snd_soc_pm_ops, |
197 | }, | 196 | }, |
diff --git a/sound/soc/samsung/smdk_wm8994pcm.c b/sound/soc/samsung/smdk_wm8994pcm.c index b6c09979be1f..c470e8eed6e1 100644 --- a/sound/soc/samsung/smdk_wm8994pcm.c +++ b/sound/soc/samsung/smdk_wm8994pcm.c | |||
@@ -143,7 +143,6 @@ static int snd_smdk_probe(struct platform_device *pdev) | |||
143 | 143 | ||
144 | static struct platform_driver snd_smdk_driver = { | 144 | static struct platform_driver snd_smdk_driver = { |
145 | .driver = { | 145 | .driver = { |
146 | .owner = THIS_MODULE, | ||
147 | .name = "samsung-smdk-pcm", | 146 | .name = "samsung-smdk-pcm", |
148 | }, | 147 | }, |
149 | .probe = snd_smdk_probe, | 148 | .probe = snd_smdk_probe, |
diff --git a/sound/soc/samsung/snow.c b/sound/soc/samsung/snow.c index 72118a77dd5b..7651dc924161 100644 --- a/sound/soc/samsung/snow.c +++ b/sound/soc/samsung/snow.c | |||
@@ -115,7 +115,6 @@ MODULE_DEVICE_TABLE(of, snow_of_match); | |||
115 | static struct platform_driver snow_driver = { | 115 | static struct platform_driver snow_driver = { |
116 | .driver = { | 116 | .driver = { |
117 | .name = "snow-audio", | 117 | .name = "snow-audio", |
118 | .owner = THIS_MODULE, | ||
119 | .pm = &snd_soc_pm_ops, | 118 | .pm = &snd_soc_pm_ops, |
120 | .of_match_table = snow_of_match, | 119 | .of_match_table = snow_of_match, |
121 | }, | 120 | }, |
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index d7d2e208f486..36dbc0e96004 100644 --- a/sound/soc/samsung/spdif.c +++ b/sound/soc/samsung/spdif.c | |||
@@ -477,7 +477,6 @@ static struct platform_driver samsung_spdif_driver = { | |||
477 | .remove = spdif_remove, | 477 | .remove = spdif_remove, |
478 | .driver = { | 478 | .driver = { |
479 | .name = "samsung-spdif", | 479 | .name = "samsung-spdif", |
480 | .owner = THIS_MODULE, | ||
481 | }, | 480 | }, |
482 | }; | 481 | }; |
483 | 482 | ||
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c index a05482651aae..5ec7c52282f2 100644 --- a/sound/soc/samsung/speyside.c +++ b/sound/soc/samsung/speyside.c | |||
@@ -340,7 +340,6 @@ static int speyside_probe(struct platform_device *pdev) | |||
340 | static struct platform_driver speyside_driver = { | 340 | static struct platform_driver speyside_driver = { |
341 | .driver = { | 341 | .driver = { |
342 | .name = "speyside", | 342 | .name = "speyside", |
343 | .owner = THIS_MODULE, | ||
344 | .pm = &snd_soc_pm_ops, | 343 | .pm = &snd_soc_pm_ops, |
345 | }, | 344 | }, |
346 | .probe = speyside_probe, | 345 | .probe = speyside_probe, |
diff --git a/sound/soc/samsung/tobermory.c b/sound/soc/samsung/tobermory.c index 6a2b9f14d624..9c80506527c4 100644 --- a/sound/soc/samsung/tobermory.c +++ b/sound/soc/samsung/tobermory.c | |||
@@ -234,7 +234,6 @@ static int tobermory_probe(struct platform_device *pdev) | |||
234 | static struct platform_driver tobermory_driver = { | 234 | static struct platform_driver tobermory_driver = { |
235 | .driver = { | 235 | .driver = { |
236 | .name = "tobermory", | 236 | .name = "tobermory", |
237 | .owner = THIS_MODULE, | ||
238 | .pm = &snd_soc_pm_ops, | 237 | .pm = &snd_soc_pm_ops, |
239 | }, | 238 | }, |
240 | .probe = tobermory_probe, | 239 | .probe = tobermory_probe, |
diff --git a/sound/soc/sh/dma-sh7760.c b/sound/soc/sh/dma-sh7760.c index c85f8eb66c97..a5b2c4ea90d9 100644 --- a/sound/soc/sh/dma-sh7760.c +++ b/sound/soc/sh/dma-sh7760.c | |||
@@ -345,7 +345,6 @@ static int sh7760_soc_platform_remove(struct platform_device *pdev) | |||
345 | static struct platform_driver sh7760_pcm_driver = { | 345 | static struct platform_driver sh7760_pcm_driver = { |
346 | .driver = { | 346 | .driver = { |
347 | .name = "sh7760-pcm-audio", | 347 | .name = "sh7760-pcm-audio", |
348 | .owner = THIS_MODULE, | ||
349 | }, | 348 | }, |
350 | 349 | ||
351 | .probe = sh7760_soc_platform_probe, | 350 | .probe = sh7760_soc_platform_probe, |
diff --git a/sound/soc/sh/hac.c b/sound/soc/sh/hac.c index d5f567e085ff..84c51037a7d0 100644 --- a/sound/soc/sh/hac.c +++ b/sound/soc/sh/hac.c | |||
@@ -333,7 +333,6 @@ static int hac_soc_platform_remove(struct platform_device *pdev) | |||
333 | static struct platform_driver hac_pcm_driver = { | 333 | static struct platform_driver hac_pcm_driver = { |
334 | .driver = { | 334 | .driver = { |
335 | .name = "hac-pcm-audio", | 335 | .name = "hac-pcm-audio", |
336 | .owner = THIS_MODULE, | ||
337 | }, | 336 | }, |
338 | 337 | ||
339 | .probe = hac_soc_platform_probe, | 338 | .probe = hac_soc_platform_probe, |
diff --git a/sound/soc/sh/siu_dai.c b/sound/soc/sh/siu_dai.c index d55babee14f8..abb0d956231c 100644 --- a/sound/soc/sh/siu_dai.c +++ b/sound/soc/sh/siu_dai.c | |||
@@ -845,7 +845,6 @@ static int siu_remove(struct platform_device *pdev) | |||
845 | 845 | ||
846 | static struct platform_driver siu_driver = { | 846 | static struct platform_driver siu_driver = { |
847 | .driver = { | 847 | .driver = { |
848 | .owner = THIS_MODULE, | ||
849 | .name = "siu-pcm-audio", | 848 | .name = "siu-pcm-audio", |
850 | }, | 849 | }, |
851 | .probe = siu_probe, | 850 | .probe = siu_probe, |
diff --git a/sound/soc/sh/ssi.c b/sound/soc/sh/ssi.c index e889405ebd38..ab13146e4f82 100644 --- a/sound/soc/sh/ssi.c +++ b/sound/soc/sh/ssi.c | |||
@@ -398,7 +398,6 @@ static int sh4_soc_dai_remove(struct platform_device *pdev) | |||
398 | static struct platform_driver sh4_ssi_driver = { | 398 | static struct platform_driver sh4_ssi_driver = { |
399 | .driver = { | 399 | .driver = { |
400 | .name = "sh4-ssi-dai", | 400 | .name = "sh4-ssi-dai", |
401 | .owner = THIS_MODULE, | ||
402 | }, | 401 | }, |
403 | 402 | ||
404 | .probe = sh4_soc_dai_probe, | 403 | .probe = sh4_soc_dai_probe, |
diff --git a/sound/soc/sirf/sirf-audio-port.c b/sound/soc/sirf/sirf-audio-port.c index b4afa31b2bc1..3f2cce03275c 100644 --- a/sound/soc/sirf/sirf-audio-port.c +++ b/sound/soc/sirf/sirf-audio-port.c | |||
@@ -74,7 +74,6 @@ MODULE_DEVICE_TABLE(of, sirf_audio_port_of_match); | |||
74 | static struct platform_driver sirf_audio_port_driver = { | 74 | static struct platform_driver sirf_audio_port_driver = { |
75 | .driver = { | 75 | .driver = { |
76 | .name = "sirf-audio-port", | 76 | .name = "sirf-audio-port", |
77 | .owner = THIS_MODULE, | ||
78 | .of_match_table = sirf_audio_port_of_match, | 77 | .of_match_table = sirf_audio_port_of_match, |
79 | }, | 78 | }, |
80 | .probe = sirf_audio_port_probe, | 79 | .probe = sirf_audio_port_probe, |
diff --git a/sound/soc/sirf/sirf-audio.c b/sound/soc/sirf/sirf-audio.c index ecef51021653..94ea152e0362 100644 --- a/sound/soc/sirf/sirf-audio.c +++ b/sound/soc/sirf/sirf-audio.c | |||
@@ -143,7 +143,6 @@ MODULE_DEVICE_TABLE(of, sirf_audio_of_match); | |||
143 | static struct platform_driver sirf_audio_driver = { | 143 | static struct platform_driver sirf_audio_driver = { |
144 | .driver = { | 144 | .driver = { |
145 | .name = "sirf-audio-card", | 145 | .name = "sirf-audio-card", |
146 | .owner = THIS_MODULE, | ||
147 | .pm = &snd_soc_pm_ops, | 146 | .pm = &snd_soc_pm_ops, |
148 | .of_match_table = sirf_audio_of_match, | 147 | .of_match_table = sirf_audio_of_match, |
149 | }, | 148 | }, |
diff --git a/sound/soc/sirf/sirf-usp.c b/sound/soc/sirf/sirf-usp.c index 186dc7f33a55..45fc06c0e0e5 100644 --- a/sound/soc/sirf/sirf-usp.c +++ b/sound/soc/sirf/sirf-usp.c | |||
@@ -422,7 +422,6 @@ static const struct dev_pm_ops sirf_usp_pcm_pm_ops = { | |||
422 | static struct platform_driver sirf_usp_pcm_driver = { | 422 | static struct platform_driver sirf_usp_pcm_driver = { |
423 | .driver = { | 423 | .driver = { |
424 | .name = "sirf-usp-pcm", | 424 | .name = "sirf-usp-pcm", |
425 | .owner = THIS_MODULE, | ||
426 | .of_match_table = sirf_usp_pcm_of_match, | 425 | .of_match_table = sirf_usp_pcm_of_match, |
427 | .pm = &sirf_usp_pcm_pm_ops, | 426 | .pm = &sirf_usp_pcm_pm_ops, |
428 | }, | 427 | }, |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 935721062c21..985052b3fbed 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1772,7 +1772,6 @@ EXPORT_SYMBOL_GPL(snd_soc_pm_ops); | |||
1772 | static struct platform_driver soc_driver = { | 1772 | static struct platform_driver soc_driver = { |
1773 | .driver = { | 1773 | .driver = { |
1774 | .name = "soc-audio", | 1774 | .name = "soc-audio", |
1775 | .owner = THIS_MODULE, | ||
1776 | .pm = &snd_soc_pm_ops, | 1775 | .pm = &snd_soc_pm_ops, |
1777 | }, | 1776 | }, |
1778 | .probe = soc_probe, | 1777 | .probe = soc_probe, |
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 7f22ca35a413..362c69ac1d6c 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c | |||
@@ -154,7 +154,6 @@ static int snd_soc_dummy_remove(struct platform_device *pdev) | |||
154 | static struct platform_driver soc_dummy_driver = { | 154 | static struct platform_driver soc_dummy_driver = { |
155 | .driver = { | 155 | .driver = { |
156 | .name = "snd-soc-dummy", | 156 | .name = "snd-soc-dummy", |
157 | .owner = THIS_MODULE, | ||
158 | }, | 157 | }, |
159 | .probe = snd_soc_dummy_probe, | 158 | .probe = snd_soc_dummy_probe, |
160 | .remove = snd_soc_dummy_remove, | 159 | .remove = snd_soc_dummy_remove, |
diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c index 4ab442a63d7e..a4028601da01 100644 --- a/sound/soc/spear/spdif_in.c +++ b/sound/soc/spear/spdif_in.c | |||
@@ -274,7 +274,6 @@ static struct platform_driver spdif_in_driver = { | |||
274 | .probe = spdif_in_probe, | 274 | .probe = spdif_in_probe, |
275 | .driver = { | 275 | .driver = { |
276 | .name = "spdif-in", | 276 | .name = "spdif-in", |
277 | .owner = THIS_MODULE, | ||
278 | }, | 277 | }, |
279 | }; | 278 | }; |
280 | 279 | ||
diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c index 19cca043e6e4..0a72d52d533e 100644 --- a/sound/soc/spear/spdif_out.c +++ b/sound/soc/spear/spdif_out.c | |||
@@ -354,7 +354,6 @@ static struct platform_driver spdif_out_driver = { | |||
354 | .probe = spdif_out_probe, | 354 | .probe = spdif_out_probe, |
355 | .driver = { | 355 | .driver = { |
356 | .name = "spdif-out", | 356 | .name = "spdif-out", |
357 | .owner = THIS_MODULE, | ||
358 | .pm = SPDIF_OUT_DEV_PM_OPS, | 357 | .pm = SPDIF_OUT_DEV_PM_OPS, |
359 | }, | 358 | }, |
360 | }; | 359 | }; |
diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index 29a9957d335a..a68368edab9c 100644 --- a/sound/soc/tegra/tegra20_ac97.c +++ b/sound/soc/tegra/tegra20_ac97.c | |||
@@ -438,7 +438,6 @@ static const struct of_device_id tegra20_ac97_of_match[] = { | |||
438 | static struct platform_driver tegra20_ac97_driver = { | 438 | static struct platform_driver tegra20_ac97_driver = { |
439 | .driver = { | 439 | .driver = { |
440 | .name = DRV_NAME, | 440 | .name = DRV_NAME, |
441 | .owner = THIS_MODULE, | ||
442 | .of_match_table = tegra20_ac97_of_match, | 441 | .of_match_table = tegra20_ac97_of_match, |
443 | }, | 442 | }, |
444 | .probe = tegra20_ac97_platform_probe, | 443 | .probe = tegra20_ac97_platform_probe, |
diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.c index a634f13b3ffc..f52600b4f3fd 100644 --- a/sound/soc/tegra/tegra20_das.c +++ b/sound/soc/tegra/tegra20_das.c | |||
@@ -233,7 +233,6 @@ static struct platform_driver tegra20_das_driver = { | |||
233 | .remove = tegra20_das_remove, | 233 | .remove = tegra20_das_remove, |
234 | .driver = { | 234 | .driver = { |
235 | .name = DRV_NAME, | 235 | .name = DRV_NAME, |
236 | .owner = THIS_MODULE, | ||
237 | .of_match_table = tegra20_das_of_match, | 236 | .of_match_table = tegra20_das_of_match, |
238 | }, | 237 | }, |
239 | }; | 238 | }; |
diff --git a/sound/soc/tegra/tegra20_i2s.c b/sound/soc/tegra/tegra20_i2s.c index 79a9932ffe6e..05f1c6ee99e3 100644 --- a/sound/soc/tegra/tegra20_i2s.c +++ b/sound/soc/tegra/tegra20_i2s.c | |||
@@ -464,7 +464,6 @@ static const struct dev_pm_ops tegra20_i2s_pm_ops = { | |||
464 | static struct platform_driver tegra20_i2s_driver = { | 464 | static struct platform_driver tegra20_i2s_driver = { |
465 | .driver = { | 465 | .driver = { |
466 | .name = DRV_NAME, | 466 | .name = DRV_NAME, |
467 | .owner = THIS_MODULE, | ||
468 | .of_match_table = tegra20_i2s_of_match, | 467 | .of_match_table = tegra20_i2s_of_match, |
469 | .pm = &tegra20_i2s_pm_ops, | 468 | .pm = &tegra20_i2s_pm_ops, |
470 | }, | 469 | }, |
diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c index a0ce92400faf..9141477a528d 100644 --- a/sound/soc/tegra/tegra20_spdif.c +++ b/sound/soc/tegra/tegra20_spdif.c | |||
@@ -387,7 +387,6 @@ static const struct dev_pm_ops tegra20_spdif_pm_ops = { | |||
387 | static struct platform_driver tegra20_spdif_driver = { | 387 | static struct platform_driver tegra20_spdif_driver = { |
388 | .driver = { | 388 | .driver = { |
389 | .name = DRV_NAME, | 389 | .name = DRV_NAME, |
390 | .owner = THIS_MODULE, | ||
391 | .pm = &tegra20_spdif_pm_ops, | 390 | .pm = &tegra20_spdif_pm_ops, |
392 | }, | 391 | }, |
393 | .probe = tegra20_spdif_platform_probe, | 392 | .probe = tegra20_spdif_platform_probe, |
diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c index 0db68f49f4d9..bc94e5d8e79a 100644 --- a/sound/soc/tegra/tegra30_ahub.c +++ b/sound/soc/tegra/tegra30_ahub.c | |||
@@ -723,7 +723,6 @@ static struct platform_driver tegra30_ahub_driver = { | |||
723 | .remove = tegra30_ahub_remove, | 723 | .remove = tegra30_ahub_remove, |
724 | .driver = { | 724 | .driver = { |
725 | .name = DRV_NAME, | 725 | .name = DRV_NAME, |
726 | .owner = THIS_MODULE, | ||
727 | .of_match_table = tegra30_ahub_of_match, | 726 | .of_match_table = tegra30_ahub_of_match, |
728 | .pm = &tegra30_ahub_pm_ops, | 727 | .pm = &tegra30_ahub_pm_ops, |
729 | }, | 728 | }, |
diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index f146c41dd3ec..fe36375ba89c 100644 --- a/sound/soc/tegra/tegra30_i2s.c +++ b/sound/soc/tegra/tegra30_i2s.c | |||
@@ -585,7 +585,6 @@ static const struct dev_pm_ops tegra30_i2s_pm_ops = { | |||
585 | static struct platform_driver tegra30_i2s_driver = { | 585 | static struct platform_driver tegra30_i2s_driver = { |
586 | .driver = { | 586 | .driver = { |
587 | .name = DRV_NAME, | 587 | .name = DRV_NAME, |
588 | .owner = THIS_MODULE, | ||
589 | .of_match_table = tegra30_i2s_of_match, | 588 | .of_match_table = tegra30_i2s_of_match, |
590 | .pm = &tegra30_i2s_pm_ops, | 589 | .pm = &tegra30_i2s_pm_ops, |
591 | }, | 590 | }, |
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c index a83aff09dce2..769aca2fc5f5 100644 --- a/sound/soc/tegra/tegra_alc5632.c +++ b/sound/soc/tegra/tegra_alc5632.c | |||
@@ -250,7 +250,6 @@ static const struct of_device_id tegra_alc5632_of_match[] = { | |||
250 | static struct platform_driver tegra_alc5632_driver = { | 250 | static struct platform_driver tegra_alc5632_driver = { |
251 | .driver = { | 251 | .driver = { |
252 | .name = DRV_NAME, | 252 | .name = DRV_NAME, |
253 | .owner = THIS_MODULE, | ||
254 | .pm = &snd_soc_pm_ops, | 253 | .pm = &snd_soc_pm_ops, |
255 | .of_match_table = tegra_alc5632_of_match, | 254 | .of_match_table = tegra_alc5632_of_match, |
256 | }, | 255 | }, |
diff --git a/sound/soc/tegra/tegra_max98090.c b/sound/soc/tegra/tegra_max98090.c index 01921d7e73fa..af3fb997b752 100644 --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c | |||
@@ -308,7 +308,6 @@ static const struct of_device_id tegra_max98090_of_match[] = { | |||
308 | static struct platform_driver tegra_max98090_driver = { | 308 | static struct platform_driver tegra_max98090_driver = { |
309 | .driver = { | 309 | .driver = { |
310 | .name = DRV_NAME, | 310 | .name = DRV_NAME, |
311 | .owner = THIS_MODULE, | ||
312 | .pm = &snd_soc_pm_ops, | 311 | .pm = &snd_soc_pm_ops, |
313 | .of_match_table = tegra_max98090_of_match, | 312 | .of_match_table = tegra_max98090_of_match, |
314 | }, | 313 | }, |
diff --git a/sound/soc/tegra/tegra_rt5640.c b/sound/soc/tegra/tegra_rt5640.c index 4ebe3871e610..ed759a3076b8 100644 --- a/sound/soc/tegra/tegra_rt5640.c +++ b/sound/soc/tegra/tegra_rt5640.c | |||
@@ -255,7 +255,6 @@ static const struct of_device_id tegra_rt5640_of_match[] = { | |||
255 | static struct platform_driver tegra_rt5640_driver = { | 255 | static struct platform_driver tegra_rt5640_driver = { |
256 | .driver = { | 256 | .driver = { |
257 | .name = DRV_NAME, | 257 | .name = DRV_NAME, |
258 | .owner = THIS_MODULE, | ||
259 | .pm = &snd_soc_pm_ops, | 258 | .pm = &snd_soc_pm_ops, |
260 | .of_match_table = tegra_rt5640_of_match, | 259 | .of_match_table = tegra_rt5640_of_match, |
261 | }, | 260 | }, |
diff --git a/sound/soc/tegra/tegra_wm8753.c b/sound/soc/tegra/tegra_wm8753.c index 769e28f6642e..f0cd01dbfc38 100644 --- a/sound/soc/tegra/tegra_wm8753.c +++ b/sound/soc/tegra/tegra_wm8753.c | |||
@@ -204,7 +204,6 @@ static const struct of_device_id tegra_wm8753_of_match[] = { | |||
204 | static struct platform_driver tegra_wm8753_driver = { | 204 | static struct platform_driver tegra_wm8753_driver = { |
205 | .driver = { | 205 | .driver = { |
206 | .name = DRV_NAME, | 206 | .name = DRV_NAME, |
207 | .owner = THIS_MODULE, | ||
208 | .pm = &snd_soc_pm_ops, | 207 | .pm = &snd_soc_pm_ops, |
209 | .of_match_table = tegra_wm8753_of_match, | 208 | .of_match_table = tegra_wm8753_of_match, |
210 | }, | 209 | }, |
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index 86e05e938585..e52420dae2b4 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c | |||
@@ -386,7 +386,6 @@ static const struct of_device_id tegra_wm8903_of_match[] = { | |||
386 | static struct platform_driver tegra_wm8903_driver = { | 386 | static struct platform_driver tegra_wm8903_driver = { |
387 | .driver = { | 387 | .driver = { |
388 | .name = DRV_NAME, | 388 | .name = DRV_NAME, |
389 | .owner = THIS_MODULE, | ||
390 | .pm = &snd_soc_pm_ops, | 389 | .pm = &snd_soc_pm_ops, |
391 | .of_match_table = tegra_wm8903_of_match, | 390 | .of_match_table = tegra_wm8903_of_match, |
392 | }, | 391 | }, |
diff --git a/sound/soc/tegra/tegra_wm9712.c b/sound/soc/tegra/tegra_wm9712.c index de087ee3458a..2868b4839bc0 100644 --- a/sound/soc/tegra/tegra_wm9712.c +++ b/sound/soc/tegra/tegra_wm9712.c | |||
@@ -167,7 +167,6 @@ static const struct of_device_id tegra_wm9712_of_match[] = { | |||
167 | static struct platform_driver tegra_wm9712_driver = { | 167 | static struct platform_driver tegra_wm9712_driver = { |
168 | .driver = { | 168 | .driver = { |
169 | .name = DRV_NAME, | 169 | .name = DRV_NAME, |
170 | .owner = THIS_MODULE, | ||
171 | .pm = &snd_soc_pm_ops, | 170 | .pm = &snd_soc_pm_ops, |
172 | .of_match_table = tegra_wm9712_of_match, | 171 | .of_match_table = tegra_wm9712_of_match, |
173 | }, | 172 | }, |
diff --git a/sound/soc/tegra/trimslice.c b/sound/soc/tegra/trimslice.c index 589d2d9b553a..2cea203c4f5f 100644 --- a/sound/soc/tegra/trimslice.c +++ b/sound/soc/tegra/trimslice.c | |||
@@ -193,7 +193,6 @@ MODULE_DEVICE_TABLE(of, trimslice_of_match); | |||
193 | static struct platform_driver tegra_snd_trimslice_driver = { | 193 | static struct platform_driver tegra_snd_trimslice_driver = { |
194 | .driver = { | 194 | .driver = { |
195 | .name = DRV_NAME, | 195 | .name = DRV_NAME, |
196 | .owner = THIS_MODULE, | ||
197 | .of_match_table = trimslice_of_match, | 196 | .of_match_table = trimslice_of_match, |
198 | }, | 197 | }, |
199 | .probe = tegra_snd_trimslice_probe, | 198 | .probe = tegra_snd_trimslice_probe, |
diff --git a/sound/soc/txx9/txx9aclc-ac97.c b/sound/soc/txx9/txx9aclc-ac97.c index f7135cdaa2ca..e2ad00e3cae1 100644 --- a/sound/soc/txx9/txx9aclc-ac97.c +++ b/sound/soc/txx9/txx9aclc-ac97.c | |||
@@ -224,7 +224,6 @@ static struct platform_driver txx9aclc_ac97_driver = { | |||
224 | .remove = txx9aclc_ac97_dev_remove, | 224 | .remove = txx9aclc_ac97_dev_remove, |
225 | .driver = { | 225 | .driver = { |
226 | .name = "txx9aclc-ac97", | 226 | .name = "txx9aclc-ac97", |
227 | .owner = THIS_MODULE, | ||
228 | }, | 227 | }, |
229 | }; | 228 | }; |
230 | 229 | ||
diff --git a/sound/soc/txx9/txx9aclc-generic.c b/sound/soc/txx9/txx9aclc-generic.c index b056a1431ed4..d0b1e7759968 100644 --- a/sound/soc/txx9/txx9aclc-generic.c +++ b/sound/soc/txx9/txx9aclc-generic.c | |||
@@ -66,7 +66,6 @@ static struct platform_driver txx9aclc_generic_driver = { | |||
66 | .remove = __exit_p(txx9aclc_generic_remove), | 66 | .remove = __exit_p(txx9aclc_generic_remove), |
67 | .driver = { | 67 | .driver = { |
68 | .name = "txx9aclc-generic", | 68 | .name = "txx9aclc-generic", |
69 | .owner = THIS_MODULE, | ||
70 | }, | 69 | }, |
71 | }; | 70 | }; |
72 | 71 | ||
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c index 00b7e2d02690..070e44e251ce 100644 --- a/sound/soc/txx9/txx9aclc.c +++ b/sound/soc/txx9/txx9aclc.c | |||
@@ -429,7 +429,6 @@ static int txx9aclc_soc_platform_remove(struct platform_device *pdev) | |||
429 | static struct platform_driver txx9aclc_pcm_driver = { | 429 | static struct platform_driver txx9aclc_pcm_driver = { |
430 | .driver = { | 430 | .driver = { |
431 | .name = "txx9aclc-pcm-audio", | 431 | .name = "txx9aclc-pcm-audio", |
432 | .owner = THIS_MODULE, | ||
433 | }, | 432 | }, |
434 | 433 | ||
435 | .probe = txx9aclc_soc_platform_probe, | 434 | .probe = txx9aclc_soc_platform_probe, |
diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index 9f2d045ee118..4e0c0e502ade 100644 --- a/sound/soc/ux500/mop500.c +++ b/sound/soc/ux500/mop500.c | |||
@@ -155,7 +155,6 @@ static const struct of_device_id snd_soc_mop500_match[] = { | |||
155 | 155 | ||
156 | static struct platform_driver snd_soc_mop500_driver = { | 156 | static struct platform_driver snd_soc_mop500_driver = { |
157 | .driver = { | 157 | .driver = { |
158 | .owner = THIS_MODULE, | ||
159 | .name = "snd-soc-mop500", | 158 | .name = "snd-soc-mop500", |
160 | .of_match_table = snd_soc_mop500_match, | 159 | .of_match_table = snd_soc_mop500_match, |
161 | }, | 160 | }, |
diff --git a/sound/soc/ux500/ux500_msp_dai.c b/sound/soc/ux500/ux500_msp_dai.c index 5f4807b2c007..978f2d7316b0 100644 --- a/sound/soc/ux500/ux500_msp_dai.c +++ b/sound/soc/ux500/ux500_msp_dai.c | |||
@@ -856,7 +856,6 @@ static const struct of_device_id ux500_msp_i2s_match[] = { | |||
856 | static struct platform_driver msp_i2s_driver = { | 856 | static struct platform_driver msp_i2s_driver = { |
857 | .driver = { | 857 | .driver = { |
858 | .name = "ux500-msp-i2s", | 858 | .name = "ux500-msp-i2s", |
859 | .owner = THIS_MODULE, | ||
860 | .of_match_table = ux500_msp_i2s_match, | 859 | .of_match_table = ux500_msp_i2s_match, |
861 | }, | 860 | }, |
862 | .probe = ux500_msp_drv_probe, | 861 | .probe = ux500_msp_drv_probe, |
diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 4a85e1433472..86280d63b76d 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c | |||
@@ -1067,7 +1067,6 @@ static const struct of_device_id amd7930_match[] = { | |||
1067 | static struct platform_driver amd7930_sbus_driver = { | 1067 | static struct platform_driver amd7930_sbus_driver = { |
1068 | .driver = { | 1068 | .driver = { |
1069 | .name = "audio", | 1069 | .name = "audio", |
1070 | .owner = THIS_MODULE, | ||
1071 | .of_match_table = amd7930_match, | 1070 | .of_match_table = amd7930_match, |
1072 | }, | 1071 | }, |
1073 | .probe = amd7930_sbus_probe, | 1072 | .probe = amd7930_sbus_probe, |
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index 06606f9bbf78..30bdc971883b 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c | |||
@@ -2111,7 +2111,6 @@ MODULE_DEVICE_TABLE(of, cs4231_match); | |||
2111 | static struct platform_driver cs4231_driver = { | 2111 | static struct platform_driver cs4231_driver = { |
2112 | .driver = { | 2112 | .driver = { |
2113 | .name = "audio", | 2113 | .name = "audio", |
2114 | .owner = THIS_MODULE, | ||
2115 | .of_match_table = cs4231_match, | 2114 | .of_match_table = cs4231_match, |
2116 | }, | 2115 | }, |
2117 | .probe = cs4231_probe, | 2116 | .probe = cs4231_probe, |
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c index b2c3d0d5dca3..0190cb6332f2 100644 --- a/sound/sparc/dbri.c +++ b/sound/sparc/dbri.c | |||
@@ -2686,7 +2686,6 @@ MODULE_DEVICE_TABLE(of, dbri_match); | |||
2686 | static struct platform_driver dbri_sbus_driver = { | 2686 | static struct platform_driver dbri_sbus_driver = { |
2687 | .driver = { | 2687 | .driver = { |
2688 | .name = "dbri", | 2688 | .name = "dbri", |
2689 | .owner = THIS_MODULE, | ||
2690 | .of_match_table = dbri_match, | 2689 | .of_match_table = dbri_match, |
2691 | }, | 2690 | }, |
2692 | .probe = dbri_probe, | 2691 | .probe = dbri_probe, |
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 73d2ba47cc31..0a598af9b38b 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h | |||
@@ -2753,133 +2753,45 @@ YAMAHA_DEVICE(0x7010, "UB99"), | |||
2753 | } | 2753 | } |
2754 | }, | 2754 | }, |
2755 | 2755 | ||
2756 | /* Hauppauge HVR-950Q and HVR-850 */ | 2756 | /* |
2757 | { | 2757 | * Auvitek au0828 devices with audio interface. |
2758 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200), | 2758 | * This should be kept in sync with drivers/media/usb/au0828/au0828-cards.c |
2759 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | 2759 | * Please notice that some drivers are DVB only, and don't need to be |
2760 | USB_DEVICE_ID_MATCH_INT_CLASS | | 2760 | * here. That's the case, for example, of DVICO_FUSIONHDTV7. |
2761 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | 2761 | */ |
2762 | .bInterfaceClass = USB_CLASS_AUDIO, | 2762 | |
2763 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | 2763 | #define AU0828_DEVICE(vid, pid, vname, pname) { \ |
2764 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | 2764 | USB_DEVICE_VENDOR_SPEC(vid, pid), \ |
2765 | .vendor_name = "Hauppauge", | 2765 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \ |
2766 | .product_name = "HVR-950Q", | 2766 | USB_DEVICE_ID_MATCH_INT_CLASS | \ |
2767 | .ifnum = QUIRK_ANY_INTERFACE, | 2767 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, \ |
2768 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | 2768 | .bInterfaceClass = USB_CLASS_AUDIO, \ |
2769 | } | 2769 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, \ |
2770 | }, | 2770 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { \ |
2771 | { | 2771 | .vendor_name = vname, \ |
2772 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210), | 2772 | .product_name = pname, \ |
2773 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | 2773 | .ifnum = QUIRK_ANY_INTERFACE, \ |
2774 | USB_DEVICE_ID_MATCH_INT_CLASS | | 2774 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, \ |
2775 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | 2775 | } \ |
2776 | .bInterfaceClass = USB_CLASS_AUDIO, | 2776 | } |
2777 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | 2777 | |
2778 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | 2778 | AU0828_DEVICE(0x2040, 0x7200, "Hauppauge", "HVR-950Q"), |
2779 | .vendor_name = "Hauppauge", | 2779 | AU0828_DEVICE(0x2040, 0x7240, "Hauppauge", "HVR-850"), |
2780 | .product_name = "HVR-950Q", | 2780 | AU0828_DEVICE(0x2040, 0x7210, "Hauppauge", "HVR-950Q"), |
2781 | .ifnum = QUIRK_ANY_INTERFACE, | 2781 | AU0828_DEVICE(0x2040, 0x7217, "Hauppauge", "HVR-950Q"), |
2782 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | 2782 | AU0828_DEVICE(0x2040, 0x721b, "Hauppauge", "HVR-950Q"), |
2783 | } | 2783 | AU0828_DEVICE(0x2040, 0x721e, "Hauppauge", "HVR-950Q"), |
2784 | }, | 2784 | AU0828_DEVICE(0x2040, 0x721f, "Hauppauge", "HVR-950Q"), |
2785 | { | 2785 | AU0828_DEVICE(0x2040, 0x7280, "Hauppauge", "HVR-950Q"), |
2786 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217), | 2786 | AU0828_DEVICE(0x0fd9, 0x0008, "Hauppauge", "HVR-950Q"), |
2787 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | 2787 | AU0828_DEVICE(0x2040, 0x7201, "Hauppauge", "HVR-950Q-MXL"), |
2788 | USB_DEVICE_ID_MATCH_INT_CLASS | | 2788 | AU0828_DEVICE(0x2040, 0x7211, "Hauppauge", "HVR-950Q-MXL"), |
2789 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | 2789 | AU0828_DEVICE(0x2040, 0x7281, "Hauppauge", "HVR-950Q-MXL"), |
2790 | .bInterfaceClass = USB_CLASS_AUDIO, | 2790 | AU0828_DEVICE(0x05e1, 0x0480, "Hauppauge", "Woodbury"), |
2791 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | 2791 | AU0828_DEVICE(0x2040, 0x8200, "Hauppauge", "Woodbury"), |
2792 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | 2792 | AU0828_DEVICE(0x2040, 0x7260, "Hauppauge", "HVR-950Q"), |
2793 | .vendor_name = "Hauppauge", | 2793 | AU0828_DEVICE(0x2040, 0x7213, "Hauppauge", "HVR-950Q"), |
2794 | .product_name = "HVR-950Q", | 2794 | AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"), |
2795 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2796 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2797 | } | ||
2798 | }, | ||
2799 | { | ||
2800 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b), | ||
2801 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | ||
2802 | USB_DEVICE_ID_MATCH_INT_CLASS | | ||
2803 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | ||
2804 | .bInterfaceClass = USB_CLASS_AUDIO, | ||
2805 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | ||
2806 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | ||
2807 | .vendor_name = "Hauppauge", | ||
2808 | .product_name = "HVR-950Q", | ||
2809 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2810 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2811 | } | ||
2812 | }, | ||
2813 | { | ||
2814 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e), | ||
2815 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | ||
2816 | USB_DEVICE_ID_MATCH_INT_CLASS | | ||
2817 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | ||
2818 | .bInterfaceClass = USB_CLASS_AUDIO, | ||
2819 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | ||
2820 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | ||
2821 | .vendor_name = "Hauppauge", | ||
2822 | .product_name = "HVR-950Q", | ||
2823 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2824 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2825 | } | ||
2826 | }, | ||
2827 | { | ||
2828 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f), | ||
2829 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | ||
2830 | USB_DEVICE_ID_MATCH_INT_CLASS | | ||
2831 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | ||
2832 | .bInterfaceClass = USB_CLASS_AUDIO, | ||
2833 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | ||
2834 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | ||
2835 | .vendor_name = "Hauppauge", | ||
2836 | .product_name = "HVR-950Q", | ||
2837 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2838 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2839 | } | ||
2840 | }, | ||
2841 | { | ||
2842 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240), | ||
2843 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | ||
2844 | USB_DEVICE_ID_MATCH_INT_CLASS | | ||
2845 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | ||
2846 | .bInterfaceClass = USB_CLASS_AUDIO, | ||
2847 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | ||
2848 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | ||
2849 | .vendor_name = "Hauppauge", | ||
2850 | .product_name = "HVR-850", | ||
2851 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2852 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2853 | } | ||
2854 | }, | ||
2855 | { | ||
2856 | USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280), | ||
2857 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | ||
2858 | USB_DEVICE_ID_MATCH_INT_CLASS | | ||
2859 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | ||
2860 | .bInterfaceClass = USB_CLASS_AUDIO, | ||
2861 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | ||
2862 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | ||
2863 | .vendor_name = "Hauppauge", | ||
2864 | .product_name = "HVR-950Q", | ||
2865 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2866 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2867 | } | ||
2868 | }, | ||
2869 | { | ||
2870 | USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008), | ||
2871 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | | ||
2872 | USB_DEVICE_ID_MATCH_INT_CLASS | | ||
2873 | USB_DEVICE_ID_MATCH_INT_SUBCLASS, | ||
2874 | .bInterfaceClass = USB_CLASS_AUDIO, | ||
2875 | .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, | ||
2876 | .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { | ||
2877 | .vendor_name = "Hauppauge", | ||
2878 | .product_name = "HVR-950Q", | ||
2879 | .ifnum = QUIRK_ANY_INTERFACE, | ||
2880 | .type = QUIRK_AUDIO_ALIGN_TRANSFER, | ||
2881 | } | ||
2882 | }, | ||
2883 | 2795 | ||
2884 | /* Digidesign Mbox */ | 2796 | /* Digidesign Mbox */ |
2885 | { | 2797 | { |