]> git.baikalelectronics.ru Git - kernel.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)
commitc83236730c6a669fb272aee42f99bffcaacc373d
treeca2930d38a4da7fcccd35f513ceb5011996a8919
parente41205559f2d06d248ae284ca8326ee04b4bd5de
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