lkml.org 
[lkml]   [2020]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 5/9] ASoC: tegra: add Tegra210 based AHUB driver
From
Date


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.

\
 
 \ /
  Last update: 2020-02-04 05:29    [W:0.106 / U:9.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site