summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1499f2d)
raw | patch | inline | side by side (parent: 1499f2d)
author | Colin Cross <ccross@android.com> | |
Tue, 31 May 2011 19:00:09 +0000 (12:00 -0700) | ||
committer | Tony Lindgren <tony@atomide.com> | |
Wed, 1 Jun 2011 09:25:04 +0000 (02:25 -0700) |
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: Colin Cross <ccross@android.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
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: Colin Cross <ccross@android.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mux.c | patch | blob | history |
index b4f90661382c8a2bb3ba1a5aad69c72c5bbbdfc1..c7fb22abc219db3756758275e0aa30c90fcdd5e6 100644 (file)
void omap_mux_write_array(struct omap_mux_partition *partition,
struct omap_board_mux *board_mux)
{
+ if (!board_mux)
+ return;
+
while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) {
omap_mux_write(partition, board_mux->value,
board_mux->reg_offset);