lkml.org 
[lkml]   [2021]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 09/11] PCI: dwc: pcie-kirin: allow using multiple reset GPIOs
On Wed, Feb 03, 2021 at 08:01:53AM +0100, Mauro Carvalho Chehab wrote:

> + reg = devm_regulator_get_optional(dev, "pci");
> + if (IS_ERR_OR_NULL(reg)) {
> + if (PTR_ERR(reg) == -EPROBE_DEFER)
> + return PTR_ERR(reg);
> + } else {
> + ret = regulator_enable(reg);

This is still misuse of regulator_get_optional() for the same reason.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2021-02-03 14:50    [W:0.193 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site