]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: orion: improve handling of optional clock
authorSimon Baatz <gmbnomis@gmail.com>
Mon, 27 Mar 2017 18:02:08 +0000 (20:02 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 29 Mar 2017 15:05:37 +0000 (17:05 +0200)
commitef980cf8b05bc862f4533fcdeae2911e6ff7027a
treeca2930d38a4da7fcccd35f513ceb5011996a8919
parent675b11d94ce9baa5eb365a51b35d2793f77c8ab8
mtd: nand: orion: improve handling of optional clock

The clock gate used by orion_nand is not available on all platforms.
When getting this optional clock gate, the code masked all errors.
Let's be more precise here and actually only allow ENOENT.

EPROBE_DEFER is handled like any other error code since probe deferral
is not supported by drivers using module_platform_driver_probe().

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/orion_nand.c