Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mfd: syscon: Restore device_node_to_regmap() for non-syscon nodes
Commit ba5095e ("mfd: syscon: Allow syscon nodes without a "syscon" compatible") broke drivers which call device_node_to_regmap() on nodes without a "syscon" compatible. Restore the prior behavior for device_node_to_regmap(). This also makes using device_node_to_regmap() incompatible with of_syscon_register_regmap() again, so add kerneldoc for device_node_to_regmap() and syscon_node_to_regmap() to make it clear how and when each one should be used. Fixes: ba5095e ("mfd: syscon: Allow syscon nodes without a "syscon" compatible") Reported-by: Vaishnav Achath <[email protected]> Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Daniel Golle <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Tested-by: Chen-Yu Tsai <[email protected]> Tested-by: Nishanth Menon <[email protected]> Tested-by: Daniel Golle <[email protected]> Tested-by: Frank Wunderlich <[email protected]> Tested-by: Dhruva Gole <[email protected]> Tested-by: Nícolas F. R. A. Prado <[email protected]> Tested-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
- Loading branch information