Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2566668yba; Mon, 6 May 2019 08:06:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/f8OADkg0LOvzkiUNPr3wRer0377Umz74ibvcbF+6nYZ4nE1PCj/lIuLMsRivPV4rp84f X-Received: by 2002:a65:44cb:: with SMTP id g11mr32712631pgs.193.1557155186161; Mon, 06 May 2019 08:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155186; cv=none; d=google.com; s=arc-20160816; b=XJ0xhgyK99t8LhXEevoc1xce03xVk4+s67L1sNq6QoOqV0nKB5DHlfNvCavcFlhmiu aD5Hnz+KFYbpyPh9b/xuoq/alwiSmgneYlXQv7x57RiC6Q91LvgBe66SvBi8BeorG8rz 1ZuX9QO87yKBgoYE0Uw11Crepcq8/CvpxXPj3Fi0Qz4aE+zZ9puvxdozSozcICpqBzCV GNVy3S6XK+4CGmF7l+hCrDJi6Q5UW4xQSXaEzWgXnfPG8WN/uHU2AAO1J+tkHGTn1K5G ouqhnFmONFobMVwPaB25Ap5/35+EmMUWSWJPRMVAZGKnV6n3NAcRwJ9BHFochrV1TOPV Regg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i5Vir6ls3SnvQ/qPnRcMfYqNlxbx3O3zglaUzQXmm/4=; b=DbX54TqsRoFXqSbsjzriyOaN8kcY7zGnowVSSn3gwI7kXMkS4NWa5tczqZt0SrzZn+ Qae82UjVirTVORdPi5iBryhTRxxMAHGRcmrMOI+n1WZ2zEUQphYvhQABX7HAKnbJPuhY nkT9sNU5UAfUEiDplb6vMSZ8cJBtAT9mAzVbQFwkJq7unHQssPFYsmnm4qWG7LGdcAkX F2pUTBnHtwbP/Qdt64hcQCBer3zlI3pErDoTy1z5mEACsCWDFP/8bklkewJKRVauXvrT 65yn5VzQ5HsqzrTWFBu8W9huPQXWs9FeO/Rbi9OFx9dDarsGmfd94Z46JwTX3eTUCMHa vQDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yvGj4tmU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si4621386pgd.148.2019.05.06.08.06.05; Mon, 06 May 2019 08:06:26 -0700 (PDT) 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=@kernel.org header.s=default header.b=yvGj4tmU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727311AbfEFOjP (ORCPT + 99 others); Mon, 6 May 2019 10:39:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:60506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727742AbfEFOjI (ORCPT ); Mon, 6 May 2019 10:39:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD01220449; Mon, 6 May 2019 14:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153548; bh=LpPfRNmlyWgRKQpclZBkufT7CTTBKC7Z/rwV7dZGWR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yvGj4tmUwkc/7Pp7tVAzdV0Tn1UVJGROU2MQ+hn1bxeG8ozLarxzvLSJQvPEHWZMB KjHod5zeTR4mC4t8a9e47rnFAskWIDAHgWZBwjK/LkR/bjHnryX/NcR7TuMxIDFCwK PID+eGw7EsgZAYPZjgAFJzublz1Z2dYQ6gyDPwAk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnaud Pouliquen , Mark Brown Subject: [PATCH 5.0 099/122] ASoC: stm32: fix sai driver name initialisation Date: Mon, 6 May 2019 16:32:37 +0200 Message-Id: <20190506143103.624590586@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaud Pouliquen commit 17d3069ccf06970e2db3f7cbf4335f207524279e upstream. This patch fixes the sai driver structure overwriting which results in a cpu dai name equal NULL. Fixes: 3e086ed ("ASoC: stm32: add SAI driver") Signed-off-by: Arnaud Pouliquen Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/stm/stm32_sai_sub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -1394,7 +1394,6 @@ static int stm32_sai_sub_dais_init(struc if (!sai->cpu_dai_drv) return -ENOMEM; - sai->cpu_dai_drv->name = dev_name(&pdev->dev); if (STM_SAI_IS_PLAYBACK(sai)) { memcpy(sai->cpu_dai_drv, &stm32_sai_playback_dai, sizeof(stm32_sai_playback_dai)); @@ -1404,6 +1403,7 @@ static int stm32_sai_sub_dais_init(struc sizeof(stm32_sai_capture_dai)); sai->cpu_dai_drv->capture.stream_name = sai->cpu_dai_drv->name; } + sai->cpu_dai_drv->name = dev_name(&pdev->dev); return 0; }