]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: fsl_sai: Add missing return 0 in remove()
authorNicolin Chen <nicoleotsuka@gmail.com>
Fri, 26 Apr 2019 03:20:50 +0000 (20:20 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 26 Apr 2019 09:50:29 +0000 (10:50 +0100)
Build warning being reported:
    sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove':
    sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in
    function returning non-void [-Wreturn-type]

So this patch just adds a "return 0" to fix it.

Fixes: 812ad463e089 ("ASoC: fsl_sai: Add support for runtime pm")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c

index 26c27dc0781f31a523c4c7f0dea35a3087aeface..8593269156bddf58f8e737ca122627b1a124605b 100644 (file)
@@ -918,6 +918,8 @@ static int fsl_sai_probe(struct platform_device *pdev)
 static int fsl_sai_remove(struct platform_device *pdev)
 {
        pm_runtime_disable(&pdev->dev);
+
+       return 0;
 }
 
 static const struct of_device_id fsl_sai_ids[] = {