diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:25:59 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:25:59 -0400 |
commit | 4483b159168d3db41458925512523e44d0d49cd4 (patch) | |
tree | 9f03be0279218b7eebf6e339d3c81940df74ea87 /arch/mips/cavium-octeon/cpu.c | |
parent | ea7a8463be6b5dd824bdf42b8f2af1d34f157877 (diff) |
MIPS: Provide more elevant interface cu2_notifier for CP2 extensions.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Patchwork: https://patchwork.linux-mips.org/patch/1504/
Diffstat (limited to 'arch/mips/cavium-octeon/cpu.c')
-rw-r--r-- | arch/mips/cavium-octeon/cpu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/mips/cavium-octeon/cpu.c b/arch/mips/cavium-octeon/cpu.c index b6df5387e855..c664c8cc2b42 100644 --- a/arch/mips/cavium-octeon/cpu.c +++ b/arch/mips/cavium-octeon/cpu.c | |||
@@ -41,12 +41,8 @@ static int cnmips_cu2_call(struct notifier_block *nfb, unsigned long action, | |||
41 | return NOTIFY_OK; /* Let default notifier send signals */ | 41 | return NOTIFY_OK; /* Let default notifier send signals */ |
42 | } | 42 | } |
43 | 43 | ||
44 | static struct notifier_block cnmips_cu2_notifier = { | ||
45 | .notifier_call = cnmips_cu2_call, | ||
46 | }; | ||
47 | |||
48 | static int cnmips_cu2_setup(void) | 44 | static int cnmips_cu2_setup(void) |
49 | { | 45 | { |
50 | return register_cu2_notifier(&cnmips_cu2_notifier); | 46 | return cu2_notifier(cnmips_cu2_call, 0); |
51 | } | 47 | } |
52 | early_initcall(cnmips_cu2_setup); | 48 | early_initcall(cnmips_cu2_setup); |