mtd: rawnand: gpmi: Simplify with dev_err_probe()
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 1 Sep 2020 14:25:32 +0000 (16:25 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 14:44:17 +0000 (16:44 +0200)
commit78a73491662aae0cbb3e46f0366d1b45e6027071
treed9e0524a64c78f135360e8497edb602b5f9d44da
parent1caa7522fad54d8439dae8515d0a89f3fabc65a7
mtd: rawnand: gpmi: Simplify with dev_err_probe()

Common pattern of handling deferred probe can be simplified with
dev_err_probe().  Less code and the error value gets printed.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200901142535.12819-3-krzk@kernel.org
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c