diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2009-01-07 10:14:38 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:38 -0500 |
commit | 508808cda6c39819f51b58e95ba5c6222acea222 (patch) | |
tree | 469ad97313037db5e7ee9d09714eb05a740050d8 /arch/blackfin | |
parent | 7f1e2f98bd29f51edd64e0c15b10d9a18a7af4e1 (diff) |
Blackfin arch: do not allow people to pass in a diff clkin_hz value
do not allow people to pass in a diff clkin_hz value when
reprogramming clocks -- it is too late currently
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
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); |