[ARM] Kirkwood: small L2 code cleanup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 10:59 am

Gitweb:     http://git.kernel.org/linus/f000328ac10f23f4841b83ddc60eceb3ba0ac176
Commit:     f000328ac10f23f4841b83ddc60eceb3ba0ac176
Parent:     d75de08727018659cd7e060cf0018eaf53e49aaf
Author:     Nicolas Pitre <nico@cam.org>
AuthorDate: Fri Mar 27 14:22:26 2009 -0400
Committer:  Nicolas Pitre <nico@cam.org>
CommitDate: Sat Mar 28 22:39:30 2009 -0400

    [ARM] Kirkwood: small L2 code cleanup
    
    Strictly speaking, a MCR instruction does not produce any output.
    
    Signed-off-by: Nicolas Pitre <nico@marvell.com>
---
 arch/arm/mm/cache-feroceon-l2.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mm/cache-feroceon-l2.c b/arch/arm/mm/cache-feroceon-l2.c
index 1afed50..6e77c04 100644
--- a/arch/arm/mm/cache-feroceon-l2.c
+++ b/arch/arm/mm/cache-feroceon-l2.c
@@ -258,9 +258,7 @@ static void __init enable_dcache(void)
 
 static void __init __invalidate_icache(void)
 {
-	int dummy;
-
-	__asm__ __volatile__("mcr p15, 0, %0, c7, c5, 0" : "=r" (dummy));
+	__asm__("mcr p15, 0, %0, c7, c5, 0" : : "r" (0));
 }
 
 static int __init invalidate_and_disable_icache(void)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ARM] Kirkwood: small L2 code cleanup, Linux Kernel Mailing ..., (Fri Apr 3, 10:59 am)