[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <125e08ae-8800-a81c-078e-e785ca9d4eaf@nvidia.com>
Date: Tue, 4 Feb 2020 09:59:28 +0530
From: Sameer Pujar <spujar@...dia.com>
To: Dmitry Osipenko <digetx@...il.com>, <perex@...ex.cz>,
<tiwai@...e.com>, <robh+dt@...nel.org>
CC: <spujar@...dia.com>, <broonie@...nel.org>, <lgirdwood@...il.com>,
<thierry.reding@...il.com>, <jonathanh@...dia.com>,
<alsa-devel@...a-project.org>, <devicetree@...r.kernel.org>,
<linux-tegra@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<sharadg@...dia.com>, <mkumard@...dia.com>,
<viswanathl@...dia.com>, <rlokhande@...dia.com>,
<dramesh@...dia.com>, <atalambedu@...dia.com>
Subject: Re: [PATCH v2 5/9] ASoC: tegra: add Tegra210 based AHUB driver
On 1/30/2020 9:52 PM, Dmitry Osipenko wrote:
> External email: Use caution opening links or attachments
>
>
> 30.01.2020 13:33, Sameer Pujar пишет:
> ...
>> +static int tegra_ahub_probe(struct platform_device *pdev)
>> +{
>> + struct tegra_ahub *ahub;
>> + void __iomem *regs;
>> + int ret;
>> +
>> + ahub = devm_kcalloc(&pdev->dev, 1, sizeof(*ahub), GFP_KERNEL);
>> + if (!ahub)
>> + return -ENOMEM;
> ahub = devm_kzalloc(&pdev->dev, sizeof(*ahub), GFP_KERNEL);
Earlier I had the impression that it won't memset it to 0. Now looking
at the implementation I see that it uses '__GFP_ZERO' flag, which I
think would initialize it to '0'. Will update. Thanks.
Powered by blists - more mailing lists