Skip to content
Commit f9e64d61 authored by Daniel Mack's avatar Daniel Mack Committed by Miquel Raynal
Browse files

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: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 7734a275
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment