diff options
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 65c33911341f..3268ee24eada 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -247,7 +247,7 @@ int __init omap_mux_init_signal(const char *muxname, int val) | |||
247 | int mux_mode; | 247 | int mux_mode; |
248 | 248 | ||
249 | mux_mode = omap_mux_get_by_name(muxname, &partition, &mux); | 249 | mux_mode = omap_mux_get_by_name(muxname, &partition, &mux); |
250 | if (mux_mode < 0) | 250 | if (mux_mode < 0 || !mux) |
251 | return mux_mode; | 251 | return mux_mode; |
252 | 252 | ||
253 | old_mode = omap_mux_read(partition, mux->reg_offset); | 253 | old_mode = omap_mux_read(partition, mux->reg_offset); |