mfd: syscon: refactor of_syscon_register compatible check
Linux also provides a device_node_to_regmap function that doesn't do a
compatible = "syscon" check. In preparation for having it in barebox,
factor out the compatible check into the callers.

While at it make the clock checking explicit, so the diff clearly
indicates, we touched all instances and to prepare for follow-up
commits.

No functional change.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f4d3f55 commit a2d50d5cf7c301156d1345bcef76a517ec7ba40d
@Ahmad Fatoum Ahmad Fatoum authored on 13 Apr 2020
Sascha Hauer committed on 15 Apr 2020
Showing 1 changed file
View
drivers/mfd/syscon.c