Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp79118yba; Fri, 5 Apr 2019 02:22:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDVxCla15TK6f+bSQwUx4pEQpvG4jl5QrFiyX8dkh36RXHqJWR50KRHYuI80ahW/5IVk/t X-Received: by 2002:a17:902:e109:: with SMTP id cc9mr12004071plb.148.1554456126321; Fri, 05 Apr 2019 02:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554456126; cv=none; d=google.com; s=arc-20160816; b=lvA9pJnvJa1O0HNT0fyMdwOhlt2yX/RfddLmc4tAGKDDxCVYwssPCXz5Ou4gFy1PRs 3a3gchMAxUzRRzO/wbrFwv6rAezi4DcxIt1px0O7yAXsWm5o2BlH9nks75w/EguXMPIx nzjvGK2U9EISLXCvaRhUbEbrjC0R0whxhb+TRaifRB+dPU/JSpXfzAXw2lulag5F4FD9 8rCTauoT716FH5zx2+kpgTFXPRyql3bQa2V3+DAySSCxfb4kl+cUr0FykH1ryuMuT9uH Q3dfyvdjJkJzz/j6MP23VpKNipyz/LbMHS8wy3+Mx2luhOA/5gXSBPQyNFekjVkY4Iok LcTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=bWyYs3FLREqLOO9oEvteJUqDuDSaML0/Ki1ImkwlKEw=; b=Q9b8XCgvJTOENgCn0dOCQuEppjWfQZGHGqjTxWmShbI2At0ZR5FmYPzUmty1+8KiGe pDohKftz5OSqJDjhz7rc4n+OQYa6LCL8JOl77RhtbF71ISrstSdEuuxXJIJ2OfFcPne7 TiPAnAJAxg5sCa03TsnRUsYnz1/tabwyQQoIuBfSw78yuIfvIWcE0XUGR/Ky/s/+Ry5h 5keWSUrJOM/Vgt/LDxCD33w2HDCMfsbET24XO2FZYH67age+2r6wlW6ud1f+EZsWCViy 8rcwCxAB+jrf89qH27epxeI9w5nsHKppv6m9dZhCqNg9vah9GETSXZJC+t0XrxB/MBXP m1mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=gQmeHuuf; 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 k15si18179737pll.142.2019.04.05.02.21.51; Fri, 05 Apr 2019 02:22:06 -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=@st.com header.s=STMicroelectronics header.b=gQmeHuuf; 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 S1730490AbfDEJVK (ORCPT + 99 others); Fri, 5 Apr 2019 05:21:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:51068 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729792AbfDEJVK (ORCPT ); Fri, 5 Apr 2019 05:21:10 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3597abN009606; Fri, 5 Apr 2019 11:20:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=bWyYs3FLREqLOO9oEvteJUqDuDSaML0/Ki1ImkwlKEw=; b=gQmeHuufyYc1zkAJxLyqIr1KZZuFHy4p1UbL3oHIP/KzQXA8pVSoYY51KaMxZyoDW6DH OLKBnWghfJTHBrtjQ/2FyeNCAAxN9/Ymlhfeh1GExHpTXCQniLJ5dNRxJZTzgFJWWY3K TamBlV6/YfPX6G3HVpX18pZmx5/ZRxU8uzT88kWOQ5irjfjex7QwvwUNnhMMgr9lh0f3 S+CNkPtlzbHBg4FSI/JZowrnhAl8RUpbYhjUBQfHoc6aZAu36PLEQ5sQjQEJhrAqiy8Z vIol20AR+fvADry39ka8bC+4SfQpcjvOdDBEIs41rgmJ1jyeFc4GPi27UXL/mSmfqKRO Ag== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rmh5yrm0k-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 05 Apr 2019 11:20:16 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C38AA31; Fri, 5 Apr 2019 09:20:06 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8EB85164B; Fri, 5 Apr 2019 09:20:06 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.435.0; Fri, 5 Apr 2019 11:20:06 +0200 Received: from localhost (10.48.0.131) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 5 Apr 2019 11:20:06 +0200 From: Arnaud Pouliquen To: , Mark Brown , "Liam Girdwood" , Jaroslav Kysela , "Takashi Iwai" CC: , , , Olivier Moysan , Subject: [PATCH] ASoC: stm32: fix sai driver name initialisation Date: Fri, 5 Apr 2019 11:19:11 +0200 Message-ID: <1554455951-2755-1-git-send-email-arnaud.pouliquen@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.48.0.131] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-05_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- sound/soc/stm/stm32_sai_sub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 2a90641..3dd54bc 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -1420,7 +1420,6 @@ static int stm32_sai_sub_dais_init(struct platform_device *pdev, 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)); @@ -1430,6 +1429,7 @@ static int stm32_sai_sub_dais_init(struct platform_device *pdev, 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; } -- 2.7.4