Skip to content

Commit b73d559

Browse files
Dan Carpenterlag-linaro
authored andcommitted
mfd: syscon: Return -EPROBE_DEFER if the syscon is not found
These days we can register syscons with of_syscon_register_regmap() so when we can't find the syscon that probably means it hasn't been registered yet. Return -EPROBE_DEFER so the driver will try probing again. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Chen-Yu Tsai <wens@kernel.org> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/aQdHmrchkmOr34r3@stanley.mountain Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 30ed024 commit b73d559

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/syscon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static struct regmap *device_node_get_regmap(struct device_node *np,
183183
if (create_regmap)
184184
syscon = of_syscon_register(np, check_res);
185185
else
186-
syscon = ERR_PTR(-EINVAL);
186+
syscon = ERR_PTR(-EPROBE_DEFER);
187187
}
188188
mutex_unlock(&syscon_list_lock);
189189

0 commit comments

Comments
 (0)