diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index c05e5e3bad68..4dffb913147e 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c | |||
@@ -951,6 +951,10 @@ static u_long get_clkin_hz(void) | |||
951 | static int __init early_init_clkin_hz(char *buf) | 951 | static int __init early_init_clkin_hz(char *buf) |
952 | { | 952 | { |
953 | cached_clkin_hz = simple_strtoul(buf, NULL, 0); | 953 | cached_clkin_hz = simple_strtoul(buf, NULL, 0); |
954 | #ifdef BFIN_KERNEL_CLOCK | ||
955 | if (cached_clkin_hz != CONFIG_CLKIN_HZ) | ||
956 | panic("cannot change clkin_hz when reprogramming clocks"); | ||
957 | #endif | ||
954 | return 1; | 958 | return 1; |
955 | } | 959 | } |
956 | early_param("clkin_hz=", early_init_clkin_hz); | 960 | early_param("clkin_hz=", early_init_clkin_hz); |