lkml.org 
[lkml]   [2013]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 25/27] sound/soc/tegra: don't check resource with devm_ioremap_resource
    Date
    devm_ioremap_resource does sanity checks on the given resource. No need to
    duplicate this in the driver.

    Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
    ---
    Please apply via the subsystem-tree.

    sound/soc/tegra/tegra20_ac97.c | 7 -------
    1 file changed, 7 deletions(-)

    diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
    index e58233f..ef3d0e0 100644
    --- a/sound/soc/tegra/tegra20_ac97.c
    +++ b/sound/soc/tegra/tegra20_ac97.c
    @@ -334,12 +334,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
    }

    mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
    - if (!mem) {
    - dev_err(&pdev->dev, "No memory resource\n");
    - ret = -ENODEV;
    - goto err_clk_put;
    - }
    -
    regs = devm_ioremap_resource(&pdev->dev, mem);
    if (IS_ERR(regs)) {
    ret = PTR_ERR(regs);
    @@ -432,7 +426,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)

    return 0;

    -err_unregister_pcm:
    tegra_pcm_platform_unregister(&pdev->dev);
    err_unregister_component:
    snd_soc_unregister_component(&pdev->dev);
    --
    1.7.10.4


    \
     
     \ /
      Last update: 2013-07-23 21:01    [W:5.610 / U:0.640 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site