Re: [PATCH 5/6] mtd: rawnand: ams-delta: use GPIO lookup table

From
Andy Shevchenko <hidden>
Date
2018-05-18 21:21:19
Also in
alsa-devel, linux-arm-kernel, linux-fbdev, linux-omap, lkml
Reply to
Janusz Krzysztofik, 2018-05-18
On Sat, May 19, 2018 at 12:09 AM, Janusz Krzysztofik
[off-list ref] wrote:
+       gpiod_rdy = devm_gpiod_get_optional(&pdev->dev, "rdy", GPIOD_IN);
+       if (!IS_ERR_OR_NULL(gpiod_rdy)) {
So, is it optional or not at the end?
If it is, why do we check for NULL?
                this->dev_ready = ams_delta_nand_ready;
        } else {
                this->dev_ready = NULL;
                pr_notice("Couldn't request gpio for Delta NAND ready.\n");
dev_notice() ?
        }
quoted hunk ↗ jump to hunk
+err_gpiod:
+       if (err == -ENODEV || err == -ENOENT)
+               err = -EPROBE_DEFER;
Hmm...

-- 
With Best Regards,
Andy Shevchenko
Thread (23 messages) 23 messages, 6 authors, last reply 2018-05-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help