Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp558780pxb; Mon, 16 Aug 2021 11:40:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIwJpBPaTep7oFTt+e18aVB22FPVuvzOTyDOOGskID0D/5bxuReWfXPbmfObArTTAbem0i X-Received: by 2002:a05:6e02:f08:: with SMTP id x8mr162674ilj.92.1629139225072; Mon, 16 Aug 2021 11:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629139225; cv=none; d=google.com; s=arc-20160816; b=lZbYHX9OqVivb6hzebMbGWB8c0bPKcxGz0ZjbNwp09FaW5yDljVIqNwSJtuG8mfDx9 QW9TJeqfQcQEoN0vNBOCW2zPYm19Fs6dEZKt1qizNhBe70UD2QZf4QxuBbXQmM9859od KAlt5kXhE6fyGbqvWipB/JJDbb4gdD80ZnZOqs5vi/rDonrIS+zstDRVqE24hHYFXSth f5ErDnqEGXVBYl8Kb20CbC2ZHcNFxIGaLUfFaoOffcbbGVLwykvszmIUyzkMjuWfm1O/ JdlEJv3cNwMrzogvVF2DscigLAttq8nfOz0zjYgaXoJDchf/oqSoHbG7vaM0yAP3mbQ2 n6fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=82EFuCT/Xop8G+IIa7JBNdyHUzCFUCTVHV4npH3pTS4=; b=vsIrcDaZ2DmaGcXmf5uQ8BAhtbWXfVy/vqk6L9iWEXZWdEMef5eWASsGbB/gRCsZpP V4Lzg1p+8MGNDPdjnJH84TqmGtpbky762LAwynrtCHNiWnGvkhlkv0LXR/oJGDEaoc4H /QZzxta6FZRixQW1dWwlvpfZLtCwNIUhD8Efmuyy3BQZ0mMBaHZGVHX8E08QqFo8OdiB pUjNFxTL5Bs6mPq0gJMBGNLtCNaOdtDAuz4oLBUT7ZC1jQa7vbF8EZmStW2nYfR67Kso GPfx1vRDXIkfA3eZDM6DOsTbIqoD7YCXW780o9fDriCYx7hizvCAsfyVZbiTcbgA8jgL MkaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J/m4g2Kc"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si38923ion.36.2021.08.16.11.40.12; Mon, 16 Aug 2021 11:40:25 -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=@kernel.org header.s=k20201202 header.b="J/m4g2Kc"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232249AbhHPSkB (ORCPT + 99 others); Mon, 16 Aug 2021 14:40:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:50574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbhHPSkB (ORCPT ); Mon, 16 Aug 2021 14:40:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A6F0760F22; Mon, 16 Aug 2021 18:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629139169; bh=zxs7PfDCzOg5/JKaFuj1ZRG3AUP94enAwR2htcd+f3M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J/m4g2KcCGRuaPCzT4cJm8n8B2i7bDPFRLkN5v14dCq8JZs8fMZRV4ZgCvaeD4QUH ItI0vGPuAeIrPEI1PWlF4YY3+4BQUufG9Hry9UbIi9zLW0Gx8KMhGi9YiZrtg1JyHW BIymJ6PvjRJgX14Ye868QzaV3b0jGet8tYHCqCL7sObzEbeXalELIS0VuV9ckIpGoH FBS0/8VufzaZHf7wF8pHKGKiQQWIgOzy5jvySlJIe72+gsMSJ8bOd7HbAKTe4Agq98 9s8MyH6K13kgNJfPuQgYuWnA3ka4x6KFRJ+0875qxcItLnm+1UwQrWIUJySQfaqFg2 88PMFB6s2qIFw== Date: Mon, 16 Aug 2021 19:39:06 +0100 From: Mark Brown To: Aakash Hemadri Cc: Liam Girdwood , Takashi Iwai , Jawoslav Kysela , 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: Re: [PATCH 1/2] ASoC: tegra30: ahub: Use of_device_get_match_data Message-ID: <20210816183906.GC4253@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: X-Cookie: Allow 6 to 8 weeks for delivery. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Aug 15, 2021 at 01:42:18AM +0530, Aakash Hemadri wrote: > - match = of_match_device(tegra30_ahub_of_match, &pdev->dev); > + match = of_device_get_match_data(&pdev->dev); > if (!match) Thierry, are you sure about your review here? As others have been pointing out of_device_get_match_data() returns match->data while of_match_device() returns the device. --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEasMoACgkQJNaLcl1U h9C+Iwf+J9Ygbk55AEmLiBKbA3H+0cbaMUPZPYozas8BV793kLwX6y7eYrFg+CVj 6vDpzijY3mrdK6fVhJMjwsu/MzEel6qoLiB0EZF21JSUgMdrkCJ/lImAXyD8rh66 IC9pQo2mnorWs8lEG3QJmnFOY7dH6YGBRwLk/kyffQHkHGzz0D/+kFLBi3Fuy7kP d3kBV91h3c11wiRzBe2dPC5/xyO+Gp9nFtLu6OoLCO32YssTPu32x9YUxRXWWsmf vEB1G8GNRt66HYr9D0V9LPOjlPGIJLs6Q+F2MRyBPbyzesDGKOzG81mGjPPGfnvU pUEDPwZlEw+VtfUzcVZIMhAmrKU29A== =//If -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--