Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1722786imu; Thu, 17 Jan 2019 02:07:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN6NBhT5J5zNmNXE6dDx+B+mClzpvbH5RWftIvcgjOGdXPOICaW3WOiBM0GU8V4mLhsCzHiZ X-Received: by 2002:a17:902:4222:: with SMTP id g31mr14262205pld.240.1547719630105; Thu, 17 Jan 2019 02:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547719630; cv=none; d=google.com; s=arc-20160816; b=i+QvL/7CL59HbQRUmMyCFqYH3PyGjsrPeq3G6bB2ub/5jawpaR5Z8VsbYUc9311xlJ kYXpFJp4uxthKJQhHAq6CVFiQNjq3gopVrXTgC4/yIrIkPap57E+IjssA5J8x1+vgjqF zhzE2p8p0SWVTfkE8RG5E7Bh6zRsZz/GwFtN6DyngetZFmJRLXYdmM1Drx5Oi9eR2AmJ /Fus3oYfyUDWFFd24kKmN8sQ43ALs592xEGWtN0FNFeCZPIYV3NIznyn6BQwR5wzaILr 0AVFVlOBNzSWhQHNE9HmX+4Jrcdgfw/CrGP/08SP9rHz4V66gTAFwtZqelMb23LwCPyU T5Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TERpxjh2yJAbosjLOgxFJErb2g+VCA0i7onwsxlISzA=; b=mPcTH6bxl7ZPmJLhfAlhwW967AXMWh/UYj90OB7HhUgxbG5Ypdik26Tc/ZVGHh/fYl 6pX0cn46TXFJuNIvz52/yebi8Bh8zKQsSv+Sl5+KGhqkN4EiEXV1gLWMZv9kSLM1FbXW ItU05/htaWC8fOG/g51jzbLTJigTdmriUVX3mPAl26iQk224+QriC7AGBpujnUSXpyBE y7fez5s3PrdKx0BhPOvPz+KQSxwmnwvzYa4jKZBbW7IZgECCM2fOxrd1IwvfgAAnqWLC l2wqCg8B3TLZv9ZaJObU/haPpXl4omO6uOh5oho1EtLMe9YhYyOVRN2kqwJFTD31ZmzW eQKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LFBZjcuJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si1291415plw.158.2019.01.17.02.06.54; Thu, 17 Jan 2019 02:07:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LFBZjcuJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbfAQKES (ORCPT + 99 others); Thu, 17 Jan 2019 05:04:18 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42448 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbfAQKES (ORCPT ); Thu, 17 Jan 2019 05:04:18 -0500 Received: by mail-ed1-f66.google.com with SMTP id y20so7840773edw.9 for ; Thu, 17 Jan 2019 02:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TERpxjh2yJAbosjLOgxFJErb2g+VCA0i7onwsxlISzA=; b=LFBZjcuJldeJ+0gZPMT7rNCCZMNZPPkikeQQLcCDodpNnP0edNwMhFY6cnoe1Kwiyc k/+Tc2g7YoWrVlpPfuONkYQkVGmnNVgzmzLo0kr9QtXUQXTqZ8t7OdTpvfPEYv9ueDaK oU9/hnANaBn5MCKnnS2hFxE6FGgnFOl2su1wHpGGoCi30bKaFFyqdsrJ5+2V2b6Ibbh1 6jh6oVd7tgWJqQ+GMyi7HhVd8eJHUfCVLxlMUwFZ0GpgZeCSRmPrsOap7UkNhGV21FYs Dg9cCxgzEEu1X5ZyyUJr3JVNzf5Dl2VYTertZSowcvQUH/d4R2Um9bIdhdK7nKPqffc0 yuRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TERpxjh2yJAbosjLOgxFJErb2g+VCA0i7onwsxlISzA=; b=PTz43F8xom4szunuAV+uTVGnYDB2OVWXct9KhGhqlHwishMEhrOBBErl5bySpEFkCl PE9lVCfeMNJiTDQSpFlCj137P4qUchpE4ybCC4H7Ey31hC43xgW0dDLVeVO6+jGcNJyJ N7odXAXj36ADPaZuMtDybpgQNPaP5JES1wB3mx3jhuoFILTre1SZ5EKayLJGYqu5KdM2 9ra38PHg0o1c7wLCgsKbk2hXqCevIlAxZ884GEgF4D9pk4GhmShzBSQ9OFkf3jB+jciE STmSjbuctqyTIYLKPW8W5jJ80TX0gE6CApFyYQe6V6HPqc5XlunGAVY5pxICBgJGn8rH TxgA== X-Gm-Message-State: AJcUukdU7I/RlmclZfHZTc9KHRBybTesN6uMZuiOYGs7D20ApmjtRuYr tTmz/ctZDCGJ0DH0XVi1rf0ychFw+0lZEelqOfE= X-Received: by 2002:a17:906:a4cf:: with SMTP id cc15-v6mr10145908ejb.157.1547719456482; Thu, 17 Jan 2019 02:04:16 -0800 (PST) MIME-Version: 1.0 References: <20190117090640.12972-1-stefan@agner.ch> <20190117090640.12972-4-stefan@agner.ch> In-Reply-To: <20190117090640.12972-4-stefan@agner.ch> From: Daniel Baluta Date: Thu, 17 Jan 2019 12:04:05 +0200 Message-ID: Subject: Re: [alsa-devel] [PATCH 4/5] ASoC: imx-sgtl5000: put of nodes if finding codec fails To: Stefan Agner Cc: Timur Tabi , Nicolin Chen , Xiubo Li , Linux-ALSA , Linux Kernel Mailing List , Takashi Iwai , Liam Girdwood , Mark Brown , Fabio Estevam Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 11:07 AM Stefan Agner wrote: > > Make sure to properly put the of node in case finding the codec > fails. > > Fixes: 81e8e4926167 ("ASoC: fsl: add sgtl5000 clock support for imx-sgtl5000") > Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta > --- > sound/soc/fsl/imx-sgtl5000.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c > index e1e20499b2f1..45969e6dfad7 100644 > --- a/sound/soc/fsl/imx-sgtl5000.c > +++ b/sound/soc/fsl/imx-sgtl5000.c > @@ -111,7 +111,8 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) > codec_dev = of_find_i2c_device_by_node(codec_np); > if (!codec_dev) { > dev_err(&pdev->dev, "failed to find codec platform device\n"); > - return -EPROBE_DEFER; > + ret = -EPROBE_DEFER; > + goto fail; > } > > data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); > -- > 2.20.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel