From c4c9fbebae6a62d538817d0ccee698adaafc5d66 Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Wed, 12 Oct 2011 02:31:39 +0000 Subject: consolidate mdelay by providing a common function for all users There are several mdelay() definitions in the driver and board code. Remove them all and provide a common mdelay() in lib/time.c. Signed-off-by: Anatolij Gustschin Acked-by: Mike Frysinger --- arch/powerpc/include/asm/4xx_pcie.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'arch/powerpc/include/asm/4xx_pcie.h') diff --git a/arch/powerpc/include/asm/4xx_pcie.h b/arch/powerpc/include/asm/4xx_pcie.h index 90e0bd98fa8..fbdc28e0a5e 100644 --- a/arch/powerpc/include/asm/4xx_pcie.h +++ b/arch/powerpc/include/asm/4xx_pcie.h @@ -389,14 +389,6 @@ static inline int is_end_point(int port) return 0; } -static inline void mdelay(int n) -{ - u32 ms = n; - - while (ms--) - udelay(1000); -} - #if defined(PCIE0_SDR) static inline u32 sdr_base(int port) { -- cgit v1.2.3