| From 2233778f0f0d254f7583d8de6e7e2a0cdacd828a Mon Sep 17 00:00:00 2001 |
| From: Axel Lin <axel.lin@gmail.com> |
| Date: Fri, 25 Nov 2011 10:15:07 +0800 |
| Subject: ASoC: Convert sh directory to module_platform_driver |
| |
| Factor out some boilerplate code. |
| |
| Signed-off-by: Axel Lin <axel.lin@gmail.com> |
| Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> |
| (cherry picked from commit cb5e87387cfa8172faca36682e2df069b006efdf) |
| |
| Conflicts: |
| |
| sound/soc/sh/dma-sh7760.c |
| sound/soc/sh/hac.c |
| sound/soc/sh/siu_dai.c |
| sound/soc/sh/ssi.c |
| |
| Signed-off-by: Simon Horman <horms@verge.net.au> |
| --- |
| sound/soc/sh/fsi-ak4642.c | 13 +------------ |
| sound/soc/sh/fsi-hdmi.c | 13 +------------ |
| sound/soc/sh/fsi.c | 13 +------------ |
| 3 files changed, 3 insertions(+), 36 deletions(-) |
| |
| diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c |
| index 11d2d7f..eb52778 100644 |
| --- a/sound/soc/sh/fsi-ak4642.c |
| +++ b/sound/soc/sh/fsi-ak4642.c |
| @@ -100,18 +100,7 @@ static struct platform_driver fsi_ak4642 = { |
| .remove = fsi_ak4642_remove, |
| }; |
| |
| -static int __init fsi_ak4642_init(void) |
| -{ |
| - return platform_driver_register(&fsi_ak4642); |
| -} |
| - |
| -static void __exit fsi_ak4642_exit(void) |
| -{ |
| - platform_driver_unregister(&fsi_ak4642); |
| -} |
| - |
| -module_init(fsi_ak4642_init); |
| -module_exit(fsi_ak4642_exit); |
| +module_platform_driver(fsi_ak4642); |
| |
| MODULE_LICENSE("GPL"); |
| MODULE_DESCRIPTION("Generic SH4 FSI-AK4642 sound card"); |
| diff --git a/sound/soc/sh/fsi-hdmi.c b/sound/soc/sh/fsi-hdmi.c |
| index d3d9fd8..31c4806 100644 |
| --- a/sound/soc/sh/fsi-hdmi.c |
| +++ b/sound/soc/sh/fsi-hdmi.c |
| @@ -109,18 +109,7 @@ static struct platform_driver fsi_hdmi = { |
| .id_table = fsi_id_table, |
| }; |
| |
| -static int __init fsi_hdmi_init(void) |
| -{ |
| - return platform_driver_register(&fsi_hdmi); |
| -} |
| - |
| -static void __exit fsi_hdmi_exit(void) |
| -{ |
| - platform_driver_unregister(&fsi_hdmi); |
| -} |
| - |
| -module_init(fsi_hdmi_init); |
| -module_exit(fsi_hdmi_exit); |
| +module_platform_driver(fsi_hdmi); |
| |
| MODULE_LICENSE("GPL"); |
| MODULE_DESCRIPTION("Generic SH4 FSI-HDMI sound card"); |
| diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c |
| index aa30330..a27c306 100644 |
| --- a/sound/soc/sh/fsi.c |
| +++ b/sound/soc/sh/fsi.c |
| @@ -1468,18 +1468,7 @@ static struct platform_driver fsi_driver = { |
| .id_table = fsi_id_table, |
| }; |
| |
| -static int __init fsi_mobile_init(void) |
| -{ |
| - return platform_driver_register(&fsi_driver); |
| -} |
| - |
| -static void __exit fsi_mobile_exit(void) |
| -{ |
| - platform_driver_unregister(&fsi_driver); |
| -} |
| - |
| -module_init(fsi_mobile_init); |
| -module_exit(fsi_mobile_exit); |
| +module_platform_driver(fsi_driver); |
| |
| MODULE_LICENSE("GPL"); |
| MODULE_DESCRIPTION("SuperH onchip FSI audio driver"); |
| -- |
| 1.7.10.2.565.gbd578b5 |
| |