Searched hist:f9e64d61 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | marvell_nand.c | f9e64d61 Sat Jul 07 19:10:08 CDT 2018 Daniel Mack <daniel@zonque.org> mtd: rawnand: marvell: set reg_clk to NULL if it can't be obtained
Don't keep an error-pointer around in the private struct. If this optional clock can't be obtained, simply set the pointer to NULL instead so we can use clk_prepare_enable() on it without further checks,
Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> f9e64d61 Sat Jul 07 19:10:08 CDT 2018 Daniel Mack <daniel@zonque.org> mtd: rawnand: marvell: set reg_clk to NULL if it can't be obtained Don't keep an error-pointer around in the private struct. If this optional clock can't be obtained, simply set the pointer to NULL instead so we can use clk_prepare_enable() on it without further checks, Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|