Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp654746pxb; Mon, 16 Aug 2021 14:16:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/icmyKCyEH8eoZS8LMsgY2bqiwQtiDJCE4q1XrT2zo4Xw7g47Pwm6HJYwP+8DSmXyDBEl X-Received: by 2002:a6b:b4d3:: with SMTP id d202mr231605iof.8.1629148593413; Mon, 16 Aug 2021 14:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629148593; cv=none; d=google.com; s=arc-20160816; b=O8pStaJs81hpEnGOaE/X42u2gi/sQtzPE78CoGCVTLa9hchvJb8fUYcUfpzI/2OVJT OiFMLj/2+rerMbQ3gKvgccXUcZbUO2B+W6W2qmkAtwHN9getX1Dk5HHssk9EBLsw3Z5j 5nCaQfDUi76ypjpvZEd2GfY+UvrnQW6c72VoD8fV7LmDYf//rc1OPhP6BA/eGSnxpn8F Y1CC6fkHd3ujv9qvZThMikbvFPq6lS22HSLPSdLX5xNfaqbQ6eAfdX2xJu2YrO0Ul8X2 nJ7+y2DhP174Vc+oeOlg+bfz6ujIgNXJi4KMriJs0j21zpkXKOb6b+e87ataOEgZ/BCR RUuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g1dC/n65USYYjusFSHlK9vgvBZI+Oht+fJhBix7TCeM=; b=Y1iREqOrAeMm3kFdTi8iheebGQFW2gkCaHLu//johwfiYB9E/mRdxUAk7Kehd7oIUX dUZHl/QgpZeTold29/78oVolpmjHMfJrERANJg0Lttbtdn3EHjEySE56eMx+Pr7FePyi YBiBJk90+2qoF5pPr7jH0pu9Uqwh2+qj+zTHxlD/4YmFW/7RxW7Cu9uiFsa+B6lyO81B K+QO8U86WjdcI0pUwD5vckSNmm03YAeWOoqoax9/a3tyODEE/fC9yACnLoypHbR+y+vf 6gIyanc3kPgL+nwuC+gJlEy7fgasGVZNu29Kz18yp/O/YnjkPYX7RQLuyqfzjJM/92wC b/Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t4xoxQNZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b16si133283ior.73.2021.08.16.14.16.22; Mon, 16 Aug 2021 14:16:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t4xoxQNZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233498AbhHPVPp (ORCPT + 99 others); Mon, 16 Aug 2021 17:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbhHPVPo (ORCPT ); Mon, 16 Aug 2021 17:15:44 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B7CC061764; Mon, 16 Aug 2021 14:15:12 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id c4so5922827plh.7; Mon, 16 Aug 2021 14:15:12 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=g1dC/n65USYYjusFSHlK9vgvBZI+Oht+fJhBix7TCeM=; b=t4xoxQNZT+ddH/5CyxnTOTAsIOrlFK0h8YIrmhdRIIzq6YqwuYzLmD42x5ufOdt2Kh Qjz+yojzhOH+R2Cqvujce8uwq4FQ4yKFuZZ4tWTqbh+Mzm6oOzk485L6ViKdzQRJrK8k vrcOIX6Vi10mJirmOboPGb1aJLkvwNJyPUjquLbdSyOy3w3e/0Sr/kIFfXhu6GFwBqGk B5knjVopEOwgh63nDkMMLz1TrLO+TgsXvnhcM9ZkxQtB7o4pM+A0Q04hKsvcNTLXD6Tr GKVEitBx67K+T66SO1CNCAm61aLGbE6ZsnI2HmOc8bhSzI26WuyNC6Dp/meCt06I+Wfn +FSA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=g1dC/n65USYYjusFSHlK9vgvBZI+Oht+fJhBix7TCeM=; b=MAJ34ZXbK4QCx9sc0wEIv40qXsRXY1hucRIQ/blGwhJjMOuvUWMYpFXqYkRcJwNCMc wgZ+wEhcYfh9B+hM0WfNVf1Wt7K1+8SLeNXzgs8gBoRu1+JPexYjt9w7ipYhASMpzUMP rpk5X0tJFxGfEtYRni0PLMxLEuKhyqnaDKcUgMViVh4p7Eikd4XSALp+Fu5lmoDest7t DFyF4GxEy2niOc3rDSKxvvhqx5sUP0e6yFVu8HH+z1cRgCXyOzjtzdIOIA3toHYD6qzS u1krdYq5IrW1LrJKxoOS/DN8yHCQGlLTPmLGEnM/Ll5BLF7KMsNrqFM8VrKyOirdgel0 PjHw== X-Gm-Message-State: AOAM533Ha00Uaiqxwwiv5KKud1Q1MTgdRPELs/1ehFcfyL1yGTeGmsLa 1yVdEmAieY9Ic6qhez5D5jE= X-Received: by 2002:a17:90a:ee91:: with SMTP id i17mr605327pjz.67.1629148512230; Mon, 16 Aug 2021 14:15:12 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id b12sm103154pff.63.2021.08.16.14.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 14:15:11 -0700 (PDT) From: Aakash Hemadri To: Mark Brown , Liam Girdwood Cc: Jaroslav Kysela , Takashi Iwai , Thierry Reding , Jonathan Hunter , Philipp Zabel , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Bjorn Helgaas Subject: [PATCH 2/2] ASoC: tegra30: i2s: Fix incorrect usage of of_device_get_match_data Date: Tue, 17 Aug 2021 02:44:52 +0530 Message-Id: <4805c7fcd35c8deada63d41cb34d40de80f85a13.1629148177.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org const struct of_device_id incorrectly assigned "match->data" using of_device_get_match_data() Instead assign `const struct tegra30_i2s_soc_data *soc_data` with const void *of_device_get_match_data(...) Fixes: 356b94a32a75 ("ASoC: tegra30: i2s: Use of_device_get_match_data") Signed-off-by: Aakash Hemadri --- sound/soc/tegra/tegra30_i2s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index d4c5594efaf1..084a533bf4f2 100644 --- a/sound/soc/tegra/tegra30_i2s.c +++ b/sound/soc/tegra/tegra30_i2s.c @@ -406,7 +406,7 @@ static const struct of_device_id tegra30_i2s_of_match[] = { static int tegra30_i2s_platform_probe(struct platform_device *pdev) { struct tegra30_i2s *i2s; - const struct of_device_id *match; + const struct tegra30_i2s_soc_data *soc_data; u32 cif_ids[2]; void __iomem *regs; int ret; @@ -418,13 +418,13 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev) } dev_set_drvdata(&pdev->dev, i2s); - match = of_device_get_match_data(&pdev->dev); - if (!match) { + soc_data = of_device_get_match_data(&pdev->dev); + if (!soc_data) { dev_err(&pdev->dev, "Error: No device match found\n"); ret = -ENODEV; goto err; } - i2s->soc_data = (struct tegra30_i2s_soc_data *)match->data; + i2s->soc_data = soc_data; i2s->dai = tegra30_i2s_dai_template; i2s->dai.name = dev_name(&pdev->dev); -- 2.32.0