Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4382550rdb; Thu, 14 Sep 2023 23:38:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6sT7zsGg4YWA+OeBN5WSSEbXTfRnq/+cvZJkIWsBzRV8/v2ZMwS7869fI9T99qrqPiX2e X-Received: by 2002:a17:902:b908:b0:1b8:ae24:c207 with SMTP id bf8-20020a170902b90800b001b8ae24c207mr628013plb.68.1694759936749; Thu, 14 Sep 2023 23:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694759936; cv=none; d=google.com; s=arc-20160816; b=YPrCGXxEXVEV8gi9F4MHPKaOToo3o5gtQr7eyfELMSo8fHbG6pM0Wl5470w2PuQdMe UAyyXo5X7tTpOz8gc/WPhvpqXqbmP1CXTJuOC7qh3Y7lGJm0gPJFwVfuds+ed3iIjxo4 8a4hVnLcfJWpqGtYHD0sRBYpmm56mgIVN9lFi8Ab49X26i+FYBHSBBvrdGWcTKzcXnrx 3XniwdzlFOPB/O2N7Yrg7ZrWzSAnXWyhJ7CACQCo1gLrQhlucqyVo/oWGvAB/4bTHuBw n/NajNi1PQKd81xkQK10GAHOLvW4V9hOu0WWYUCIEitKTiUFXaY5na8va6vvp3mWmXxZ 2IkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from; bh=7uycyuHFb2G3acrZn2KX54C7KKOeFgHz9rVIEFgAf94=; fh=ej+ES4Dwh1V08gn2d72DvDWSU19D6ZzjsW9Imw8Zke8=; b=fJxUj67MSdYoabQvzAgmjqrDk/roaMul7KBIbnfyegjSBbMyZVHMW+GGm43ScYBNql 6h8heVWg/sUbSxM8NZvho6O/wtqGPEcBsbkZNKUtCtMefHcDCNQd5+0iQrwv27C585au OL2Oc4TIXoPsp1IZQlM2/SwLQzVtEaUeptGAC1jEJqmxMBZ25fUcD693TCGOSnBbimAC zVH2uzKDu/ErrX927Q90Qb4xUK2Ze85q9rTjK5Her5UadGB6S84G9FnaQ4gbtWUHtxbi lR5wG90rkjObVR2MSh2iAU0I98pYsgbPSZFkAdby9x3VSgsh1tuf6+35Gm24ld0PMOZG mJrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b6-20020a170902d50600b001bb324569efsi3018761plg.364.2023.09.14.23.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 23:38:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B7736838C5B4; Thu, 14 Sep 2023 23:38:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbjIOGiw (ORCPT + 99 others); Fri, 15 Sep 2023 02:38:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232318AbjIOGiv (ORCPT ); Fri, 15 Sep 2023 02:38:51 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02A77270E for ; Thu, 14 Sep 2023 23:38:45 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 71D0D200AA6; Fri, 15 Sep 2023 08:38:44 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 38EF0200AAA; Fri, 15 Sep 2023 08:38:44 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id A2C6B180222B; Fri, 15 Sep 2023 14:38:42 +0800 (+08) From: Shengjiu Wang To: shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: imx-audmix: Fix return error with devm_clk_get() Date: Fri, 15 Sep 2023 14:02:11 +0800 Message-Id: <1694757731-18308-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 23:38:54 -0700 (PDT) The devm_clk_get() can return -EPROBE_DEFER error, modify the error code to be -EINVAL is not correct, which cause the -EPROBE_DEFER error is not correctly handled. This patch is to fix the return error code. Fixes: b86ef5367761 ("ASoC: fsl: Add Audio Mixer machine driver") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-audmix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index 0b58df56f4da..aeb81aa61184 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c @@ -315,7 +315,7 @@ static int imx_audmix_probe(struct platform_device *pdev) if (IS_ERR(priv->cpu_mclk)) { ret = PTR_ERR(priv->cpu_mclk); dev_err(&cpu_pdev->dev, "failed to get DAI mclk1: %d\n", ret); - return -EINVAL; + return ret; } priv->audmix_pdev = audmix_pdev; -- 2.34.1