Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp654668pxb; Mon, 16 Aug 2021 14:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu2s1qzj1kvTHyzKvc4pNzMxZJoe9FK9TADGmPHUrINH/BewEbKin1gCUjYrHHvuZyOLoB X-Received: by 2002:a5e:d712:: with SMTP id v18mr200705iom.65.1629148584222; Mon, 16 Aug 2021 14:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629148584; cv=none; d=google.com; s=arc-20160816; b=mVPY2nfw8KoQYGAVIkmNYeHhua4zMJOCXzCEjl3sF5GAqcNoFM3TVfTx7JEzRRRLyW tcXluiDkFqJh4jkv62ff8HPvLZ9yefD2q9gjW/ElhSNLxr9bXX+Gd76R7xfKKa9UcjAA dRLRVmK7RBUMeptSqoGL5qZ7mdz9yYBcj9gLJGNEI9+8vHTr5icGjuoheVkhBBPILcPg 47h2LJbbTydWVGPrCKtY9m3RnVqfNNmb7RZAAkvOK9i4w6ZR8bYhrSc0RZvXdGyXOd0x SjvLBor0pyu8C5ORAlJxydVBM9gRqnvz4VABHMyshw/FlA73aHMWV1a0qHBNuTTZfxOM UGNg== 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=Ti5ieSHy8bgHsKT/p42fBihkAPuECC+Byn0rag7Ilqg=; b=B7K3iCMJtc8EFjwjyEsX8SlpLnZCCCzpFGd0oVyAMByXqQRbXmdGZqeZBY4sYtpV9d BM1CSKwR0pByFEyLOWg6gO2GR5q/oC2EOR7L9RLQ2qHsV7aUjWgsnBrbEZllq6nyuSZ/ DHKSVWn8+5WSpyHDSO99ATWXUuVCjwe7jUQNRypJgrfJi7Fo8615OdRa5XKT2MyJ1NTM ttKRgJlb6txGD+8PwwwQa0pqQqlvBlFQ1cmVOIQ8J9tiUN+waan1cP+JbSj9hRIe+5Zu RTizg1V92xYPCLsUcVZ28YLUQYPNVxYyRK922kTyRv8G896eWs3F5Ps1VytI2Auny/eD Zvlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QbhLCH3S; 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 p17si61187jak.93.2021.08.16.14.16.13; Mon, 16 Aug 2021 14:16:24 -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=QbhLCH3S; 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 S233471AbhHPVPk (ORCPT + 99 others); Mon, 16 Aug 2021 17:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbhHPVPj (ORCPT ); Mon, 16 Aug 2021 17:15:39 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E4F2C061764; Mon, 16 Aug 2021 14:15:07 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d17so22079114plr.12; Mon, 16 Aug 2021 14:15:07 -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=Ti5ieSHy8bgHsKT/p42fBihkAPuECC+Byn0rag7Ilqg=; b=QbhLCH3SR6H9ufXcqkC6oI4jMlMlgavieMvQovzBxvt35SoUs0p9AyJBI57DfhwNQV 7qqPZ2WQtvg5jJpTprurs1f10RSBwq81MkFYnAKAqQLQleN0qHoeqmKStPUp+7ChDXNj 5bqoHWxMOS7nLsrssLZPgtUFlmo4kfXoPxLCepuj2FpdUoBMs88InvmK4bMbXKtOa57Q yJ5z50M1+WTsidQku2NEYeLed8/OzclW21ekSoCtjIVLBe+OQiSwNpnhf0e+evumT9d8 W9J1ArxmXszhvXIva2i1U7iGzIz85x2zUqY0bkuqo06tY9KGVkiLJOUQxtMH7cmy1jxe hf7Q== 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=Ti5ieSHy8bgHsKT/p42fBihkAPuECC+Byn0rag7Ilqg=; b=qtWKL3mJz3F7LCn00iNIEYY5RJSxk1T3obQWl0qqesKLxu/pk/+YzJkD9yEi29gzKw 0CwyL6mLRMbnJ295Zi+oMloPvrMHSZOxG428oLWvuiqdVsLdRGXA+SRJ4y6flCOKiLsn 2pzdj9Oueoa/rML8ErsbeObY2kzxxU0DcuUTQsPHEeyGd4gg2n7bOJJNfR9duxyhgfJi ULNLNFwP6ZnUmsliYt4Z1SOATXyrczLgOZG8qWd8wmHUi66VZnY1V2seUsaqy8UP4PVl AOyHJ5wnUnz0b91ikR71nXmWxZiFNDexTsiTdzBhX63ZBe+oKxRFAI4sGVgUEGh53jTu gjDg== X-Gm-Message-State: AOAM531tCPpiJUFFKBSjlsVUZnhIa0S0cgYDdFJedRqmXjpu5fcJPGD8 GI4rhmxzBM76V9DsRvp0JSA= X-Received: by 2002:a17:90a:ba16:: with SMTP id s22mr639486pjr.28.1629148507053; Mon, 16 Aug 2021 14:15:07 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id b12sm103154pff.63.2021.08.16.14.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 14:15:06 -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 1/2] ASoC: tegra30: ahub: Fix incorrect usage of of_device_get_match_data Date: Tue, 17 Aug 2021 02:44:51 +0530 Message-Id: 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_ahub_soc_data *soc_data` with const void *of_device_get_match_data(...) Fixes: 80165bb80433 ("ASoC: tegra30: ahub: Use of_device_get_match_data") Signed-off-by: Aakash Hemadri --- sound/soc/tegra/tegra30_ahub.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c index 0ac109b32329..ef011a488ceb 100644 --- a/sound/soc/tegra/tegra30_ahub.c +++ b/sound/soc/tegra/tegra30_ahub.c @@ -512,16 +512,14 @@ static const struct of_device_id tegra30_ahub_of_match[] = { static int tegra30_ahub_probe(struct platform_device *pdev) { - const struct of_device_id *match; const struct tegra30_ahub_soc_data *soc_data; struct resource *res0; void __iomem *regs_apbif, *regs_ahub; int ret = 0; - match = of_device_get_match_data(&pdev->dev); - if (!match) + soc_data = of_device_get_match_data(&pdev->dev); + if (!soc_data) return -EINVAL; - soc_data = match->data; ahub = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_ahub), GFP_KERNEL); -- 2.32.0