From patchwork Fri Apr 26 03:20:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10917999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9C2F8912 for ; Fri, 26 Apr 2019 03:22:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 888CA28D82 for ; Fri, 26 Apr 2019 03:22:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C1EB28D87; Fri, 26 Apr 2019 03:22:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9509728D82 for ; Fri, 26 Apr 2019 03:22:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 948F586D; Fri, 26 Apr 2019 05:21:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 948F586D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1556248958; bh=lL40Mg/teBD/6KxqY+C8lYDcSNxgEMALr7YincJKMQs=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=S1pe4Em/KfRutjQszWYMgidFC3Ftor2Gdso5Rl7YMiZEjz73qPpRTbwxL02GQwNbi nbxbLJ1rpUloDEp6dAu8Wt6vmOAbYPHLhjSWmAG7PZAhODXnRkGH1L++wX/NHTeuHH 22smhQyPr9eUnc+s5AuPybLycui6YuYq6IWhqvZI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DC89BF80C41; Fri, 26 Apr 2019 05:21:47 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3E97DF896DF; Fri, 26 Apr 2019 05:21:46 +0200 (CEST) Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1A641F80C41 for ; Fri, 26 Apr 2019 05:21:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1A641F80C41 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="udHN4jJB" Received: by mail-pl1-x644.google.com with SMTP id w24so821345plp.2 for ; Thu, 25 Apr 2019 20:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2J1TjtOstEzmWtLspAyMVLNIkrOKT0VPlYnQGIz+uw4=; b=udHN4jJBs3pXVk16n237GoSyhZGfP8O8KDAYlJyn4iJED7j9WSbV+1zmUqg+jJlnPi PRaIOEU5kug5BbH13YwAGbsS2eW5bb/UWaLkxMfFSh/PJiqL/zfzfr0gP5lHldBZM9kW p0IWOJd0KbKCXZ3MZiPvhhzXuruHmlyD+Y/lRGzNHPsFYn9qCtzdsnDDpDBB7DqIPxY+ xWOskoDNaoJk+9eAvzZlKFT+HJzemNiwDrvnNLA3vgywC2bhI+TwS7tCSjYOQJa1iqIG 13gNkOgz40bdUJwCXQ2vNR9VbrwpaQRK4ELcUgWfjqUmPuiSI4l9lVLzw6i83KmAqR3H 8edQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2J1TjtOstEzmWtLspAyMVLNIkrOKT0VPlYnQGIz+uw4=; b=q9zveaflJpzc8DJPj/2HyqCfsqJVqjfCy/Xn3eEvQACXJ7clp1/Q1itdYkfYGa93Cm 0fvDD6T4Ia6YbfpsaS7WDc+yrhbl3bgKe3UWbZcdmN5lWSY0rnVSxPtVSd5zIw+anYeh Pfes7+s4jEN22sFqDuiUZNneuQtcRmGyZm+aeS3sWcGWRyyonD3R1weBCrMU7PiO9fV4 YVBbxpvvCaqCofjUsDDowlPbWeyuW0WOu6gn2Qv5W58wh7TWORAoSKNLGmMqunE2bsmY hTVcmJN7SuMbQVQuFSqsh+WYt2Wi0JoJv2MlICZx9zcVLJGkW3N46w2u8NA56NMDrgOV 75Fw== X-Gm-Message-State: APjAAAWw6Z0xdB2mJIpHhcty3em/AN9NDSfIkjetEn6IhG93BZPTLGMb GVmDlivvVO2UkrX7hbjm4S0= X-Google-Smtp-Source: APXvYqzmideczOWmwDVE6IZEwTpFCEMCSkYkYC177nGVkAFFTgTtQJGsO4LuFeTWfsNBVvH589AZsg== X-Received: by 2002:a17:902:b605:: with SMTP id b5mr5024608pls.206.1556248900457; Thu, 25 Apr 2019 20:21:40 -0700 (PDT) Received: from Asurada-CZ80.localdomain (c-98-248-47-108.hsd1.ca.comcast.net. [98.248.47.108]) by smtp.gmail.com with ESMTPSA id 10sm64985956pft.100.2019.04.25.20.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Apr 2019 20:21:39 -0700 (PDT) From: Nicolin Chen To: broonie@kernel.org Date: Thu, 25 Apr 2019 20:20:50 -0700 Message-Id: <1556248850-3748-1-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: daniel.baluta@nxp.com, sfr@canb.auug.org.au, alsa-devel@alsa-project.org, timur@kernel.org, lgirdwood@gmail.com, linuxppc-dev@lists.ozlabs.org, Xiubo.Lee@gmail.com, tiwai@suse.com, festevam@gmail.com, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: fsl_sai: Add missing return 0 in remove() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Nicolin Chen Reviewed-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 26c27dc..8593269 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -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[] = {