diff options
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
| -rw-r--r-- | arch/arm/mach-omap2/mux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index a4ab1e364313..c7fb22abc219 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
| @@ -83,6 +83,9 @@ void omap_mux_write(struct omap_mux_partition *partition, u16 val, | |||
| 83 | void omap_mux_write_array(struct omap_mux_partition *partition, | 83 | void omap_mux_write_array(struct omap_mux_partition *partition, |
| 84 | struct omap_board_mux *board_mux) | 84 | struct omap_board_mux *board_mux) |
| 85 | { | 85 | { |
| 86 | if (!board_mux) | ||
| 87 | return; | ||
| 88 | |||
| 86 | while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) { | 89 | while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) { |
| 87 | omap_mux_write(partition, board_mux->value, | 90 | omap_mux_write(partition, board_mux->value, |
| 88 | board_mux->reg_offset); | 91 | board_mux->reg_offset); |
| @@ -906,7 +909,7 @@ static struct omap_mux *omap_mux_get_by_gpio( | |||
| 906 | u16 omap_mux_get_gpio(int gpio) | 909 | u16 omap_mux_get_gpio(int gpio) |
| 907 | { | 910 | { |
| 908 | struct omap_mux_partition *partition; | 911 | struct omap_mux_partition *partition; |
| 909 | struct omap_mux *m; | 912 | struct omap_mux *m = NULL; |
| 910 | 913 | ||
| 911 | list_for_each_entry(partition, &mux_partitions, node) { | 914 | list_for_each_entry(partition, &mux_partitions, node) { |
| 912 | m = omap_mux_get_by_gpio(partition, gpio); | 915 | m = omap_mux_get_by_gpio(partition, gpio); |
