[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b2039ae7a9b33b61ea96919da2c53cbc3bca0049.camel@perches.com>
Date: Sun, 08 May 2022 22:20:02 -0700
From: Joe Perches <joe@...ches.com>
To: Dan Carpenter <dan.carpenter@...cle.com>, kbuild@...ts.01.org,
Keerthy <j-keerthy@...com>, robh+dt@...nel.org,
daniel.lezcano@...aro.org, rui.zhang@...el.com, amitk@...nel.org,
kristo@...nel.org, vigneshr@...com, krzysztof.kozlowski@...aro.org
Cc: lkp@...el.com, kbuild-all@...ts.01.org, linux-pm@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 4/4] thermal: k3_j72xx_bandgap: Add the bandgap
driver support
On Wed, 2022-05-04 at 11:00 +0300, Dan Carpenter wrote:
> Hi Keerthy,
[]
> vim +/ref_table +521 drivers/thermal/k3_j72xx_bandgap.c
[]
> bb7f95a68cbaa1 Keerthy 2022-04-27 426 ref_table = kzalloc(sizeof(*ref_table) * TABLE_SIZE, GFP_KERNEL);
> bb7f95a68cbaa1 Keerthy 2022-04-27 427 if (!ref_table) {
> bb7f95a68cbaa1 Keerthy 2022-04-27 428 ret = -ENOMEM;
> bb7f95a68cbaa1 Keerthy 2022-04-27 429 goto err_alloc;
> bb7f95a68cbaa1 Keerthy 2022-04-27 430 }
devm_kcalloc
> bb7f95a68cbaa1 Keerthy 2022-04-27 431
> bb7f95a68cbaa1 Keerthy 2022-04-27 432 derived_table = devm_kzalloc(bgp->dev, sizeof(*derived_table) * TABLE_SIZE,
> bb7f95a68cbaa1 Keerthy 2022-04-27 433 GFP_KERNEL);
here too
Powered by blists - more mailing lists