提交 d4ff6121 编写于 作者: C Colin Cross 提交者: Tony Lindgren

ARM: omap2+: mux: Allow board mux settings to be NULL

OMAP4 has two mux instances, and the board may not have settings
for one of them.  Allow the board file to pass NULL for an
instance's mux settings, which will initialize the mux instance
but skip writing board settings.
Signed-off-by: NColin Cross <ccross@android.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 1499f2db
...@@ -83,6 +83,9 @@ void omap_mux_write(struct omap_mux_partition *partition, u16 val, ...@@ -83,6 +83,9 @@ void omap_mux_write(struct omap_mux_partition *partition, u16 val,
void omap_mux_write_array(struct omap_mux_partition *partition, void omap_mux_write_array(struct omap_mux_partition *partition,
struct omap_board_mux *board_mux) struct omap_board_mux *board_mux)
{ {
if (!board_mux)
return;
while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) { while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) {
omap_mux_write(partition, board_mux->value, omap_mux_write(partition, board_mux->value,
board_mux->reg_offset); board_mux->reg_offset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册