ARM: i.MX: phytec-som-imx6: phycore: fix updating pmic regulators
Currently the fixup code assumes that only one i2c bus is active. If we
reuse the board code for other boards this isn't always true. Fix that
by using of_find_i2c_adapter_by_node() to address both cases.

Fixes: b6bebb7aca ("ARM: i.MX: phytec-som-imx6: phycore: Set BUCK mode to SYNC")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 84cf5cf commit 94e2382281ba950d63df78ead7fc5ca9aad72cda
@Marco Felsch Marco Felsch authored on 2 Oct 2019
Sascha Hauer committed on 14 Oct 2019
Showing 1 changed file
View
arch/arm/boards/phytec-som-imx6/board.c