kirkwood-dma.c (9a6806c0a7efd021dacfb7cd8bdfd11c2c6e860d) | kirkwood-dma.c (34e15fbdaa7b1839941d42c5fea96329a53be135) |
---|---|
1/* 2 * kirkwood-dma.c 3 * 4 * (c) 2010 Arnaud Patard <apatard@mandriva.com> 5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 358 unchanged lines hidden (view full) --- 367} 368 369static struct snd_soc_platform_driver kirkwood_soc_platform = { 370 .ops = &kirkwood_dma_ops, 371 .pcm_new = kirkwood_dma_new, 372 .pcm_free = kirkwood_dma_free_dma_buffers, 373}; 374 | 1/* 2 * kirkwood-dma.c 3 * 4 * (c) 2010 Arnaud Patard <apatard@mandriva.com> 5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 358 unchanged lines hidden (view full) --- 367} 368 369static struct snd_soc_platform_driver kirkwood_soc_platform = { 370 .ops = &kirkwood_dma_ops, 371 .pcm_new = kirkwood_dma_new, 372 .pcm_free = kirkwood_dma_free_dma_buffers, 373}; 374 |
375static int __devinit kirkwood_soc_platform_probe(struct platform_device *pdev) | 375static int kirkwood_soc_platform_probe(struct platform_device *pdev) |
376{ 377 return snd_soc_register_platform(&pdev->dev, &kirkwood_soc_platform); 378} 379 | 376{ 377 return snd_soc_register_platform(&pdev->dev, &kirkwood_soc_platform); 378} 379 |
380static int __devexit kirkwood_soc_platform_remove(struct platform_device *pdev) | 380static int kirkwood_soc_platform_remove(struct platform_device *pdev) |
381{ 382 snd_soc_unregister_platform(&pdev->dev); 383 return 0; 384} 385 386static struct platform_driver kirkwood_pcm_driver = { 387 .driver = { 388 .name = "kirkwood-pcm-audio", 389 .owner = THIS_MODULE, 390 }, 391 392 .probe = kirkwood_soc_platform_probe, | 381{ 382 snd_soc_unregister_platform(&pdev->dev); 383 return 0; 384} 385 386static struct platform_driver kirkwood_pcm_driver = { 387 .driver = { 388 .name = "kirkwood-pcm-audio", 389 .owner = THIS_MODULE, 390 }, 391 392 .probe = kirkwood_soc_platform_probe, |
393 .remove = __devexit_p(kirkwood_soc_platform_remove), | 393 .remove = kirkwood_soc_platform_remove, |
394}; 395 396module_platform_driver(kirkwood_pcm_driver); 397 398MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); 399MODULE_DESCRIPTION("Marvell Kirkwood Audio DMA module"); 400MODULE_LICENSE("GPL"); 401MODULE_ALIAS("platform:kirkwood-pcm-audio"); | 394}; 395 396module_platform_driver(kirkwood_pcm_driver); 397 398MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); 399MODULE_DESCRIPTION("Marvell Kirkwood Audio DMA module"); 400MODULE_LICENSE("GPL"); 401MODULE_ALIAS("platform:kirkwood-pcm-audio"); |