[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5D6gUCjLstFLYEZ0e6eMAGgzff03BfJywB4znEct5gYMw@mail.gmail.com>
Date: Mon, 7 Aug 2017 09:40:11 -0300
From: Fabio Estevam <festevam@...il.com>
To: Peng Fan <peng.fan@....com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Rob Herring <robh@...nel.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] gpio: 74x164: handling enable-gpios
On Mon, Aug 7, 2017 at 9:27 AM, Peng Fan <peng.fan@....com> wrote:
> + chip->enable_gpio = devm_gpiod_get(&spi->dev, "enable", GPIOD_OUT_LOW);
> + if (IS_ERR(chip->enable_gpio)) {
> + dev_dbg(&spi->dev, "No enable-gpios property\n");
> + chip->enable_gpio = NULL;
Also, the error handling here is not correct as it will never
propagate EPROBE_DEFER.
I will submit my version of the patch if you don't mind.
Powered by blists - more mailing lists