ASoC: psc-ac97: Use devm_ioremap_resource()
Mark Brown
maintainerPATCH 1/3 ASoC: psc-ac97: Use devm_ioremap_resource()
From: Mark Brown <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/au1x/psc-ac97.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
sound/soc/au1x/psc-ac97.c +3 -9
@@ -383,15 +383,9 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)if (!iores)return -ENODEV ; -if (!devm_request_mem_region (&pdev->dev, iores->start, -resource_size (iores), - pdev->name)) -return -EBUSY ; - - wd->mmio =devm_ioremap (&pdev->dev, iores->start, -resource_size (iores)); -if (!wd->mmio) -return -EBUSY ; + wd->mmio =devm_ioremap_resource (&pdev->dev, iores); +if (IS_ERR (wd->mmio)) +return PTR_ERR (wd->mmio); dmares =platform_get_resource (pdev,IORESOURCE_DMA ,0 );if (!dmares)
Signature · 1 line
1.8.3.1
Mark Brown
maintainerPATCH 2/3 ASoC: psc-ac97: Convert to module_platform_driver()
From: Mark Brown <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/au1x/psc-ac97.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
sound/soc/au1x/psc-ac97.c +1 -13
@@ -497,19 +497,7 @@ static struct platform_driver au1xpsc_ac97_driver = { .remove = au1xpsc_ac97_drvremove, }; -static int __init au1xpsc_ac97_load (void ) -{ - au1xpsc_ac97_workdata =NULL ; -return platform_driver_register (&au1xpsc_ac97_driver); -} - -static void __exit au1xpsc_ac97_unload(void) -{ -platform_driver_unregister (&au1xpsc_ac97_driver); -} - -module_init (au1xpsc_ac97_load); -module_exit (au1xpsc_ac97_unload); +module_platform_driver (au1xpsc_ac97_driver);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Au12x0/Au1550 PSC AC97 ALSA ASoC audio driver" );
Signature · 1 line
1.8.3.1
Mark Brown
maintainerPATCH 3/3 ASoC: ac97c: Use module_platform_driver()
In reply to Mark BrownFrom: Mark Brown <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/au1x/ac97c.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
sound/soc/au1x/ac97c.c +1 -13
@@ -338,19 +338,7 @@ static struct platform_driver au1xac97c_driver = { .remove = au1xac97c_drvremove, }; -static int __init au1xac97c_load (void ) -{ - ac97c_workdata =NULL ; -return platform_driver_register (&au1xac97c_driver); -} - -static void __exit au1xac97c_unload(void) -{ -platform_driver_unregister (&au1xac97c_driver); -} - -module_init (au1xac97c_load); -module_exit (au1xac97c_unload); +module_platform_driver (&au1xac97c_driver);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Au1000/1500/1100 AC97C ASoC driver" );
Signature · 1 line
1.8.3.1