diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 23:05:04 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:44 -0500 |
commit | f07eb223a081b278be02a58394cb5fd66f1a1bbd (patch) | |
tree | 164e8f1405a21bb5be9033d92fe20d0387b3a565 /sound/soc/fsl/fsl_dma.c | |
parent | 18d306d1375696b0e6b5b39e4744d7fa2ad5e170 (diff) |
dt/sound: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/sound. The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'sound/soc/fsl/fsl_dma.c')
-rw-r--r-- | sound/soc/fsl/fsl_dma.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index 4cf98c03af22..15dac0f20cd8 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c | |||
@@ -896,8 +896,7 @@ static struct snd_pcm_ops fsl_dma_ops = { | |||
896 | .pointer = fsl_dma_pointer, | 896 | .pointer = fsl_dma_pointer, |
897 | }; | 897 | }; |
898 | 898 | ||
899 | static int __devinit fsl_soc_dma_probe(struct platform_device *pdev, | 899 | static int __devinit fsl_soc_dma_probe(struct platform_device *pdev) |
900 | const struct of_device_id *match) | ||
901 | { | 900 | { |
902 | struct dma_object *dma; | 901 | struct dma_object *dma; |
903 | struct device_node *np = pdev->dev.of_node; | 902 | struct device_node *np = pdev->dev.of_node; |
@@ -979,7 +978,7 @@ static const struct of_device_id fsl_soc_dma_ids[] = { | |||
979 | }; | 978 | }; |
980 | MODULE_DEVICE_TABLE(of, fsl_soc_dma_ids); | 979 | MODULE_DEVICE_TABLE(of, fsl_soc_dma_ids); |
981 | 980 | ||
982 | static struct of_platform_driver fsl_soc_dma_driver = { | 981 | static struct platform_driver fsl_soc_dma_driver = { |
983 | .driver = { | 982 | .driver = { |
984 | .name = "fsl-pcm-audio", | 983 | .name = "fsl-pcm-audio", |
985 | .owner = THIS_MODULE, | 984 | .owner = THIS_MODULE, |
@@ -993,12 +992,12 @@ static int __init fsl_soc_dma_init(void) | |||
993 | { | 992 | { |
994 | pr_info("Freescale Elo DMA ASoC PCM Driver\n"); | 993 | pr_info("Freescale Elo DMA ASoC PCM Driver\n"); |
995 | 994 | ||
996 | return of_register_platform_driver(&fsl_soc_dma_driver); | 995 | return platform_driver_register(&fsl_soc_dma_driver); |
997 | } | 996 | } |
998 | 997 | ||
999 | static void __exit fsl_soc_dma_exit(void) | 998 | static void __exit fsl_soc_dma_exit(void) |
1000 | { | 999 | { |
1001 | of_unregister_platform_driver(&fsl_soc_dma_driver); | 1000 | platform_driver_unregister(&fsl_soc_dma_driver); |
1002 | } | 1001 | } |
1003 | 1002 | ||
1004 | module_init(fsl_soc_dma_init); | 1003 | module_init(fsl_soc_dma_init); |