]> git.sur5r.net Git - u-boot/commitdiff
Remove remaining mdelay() macros
authorAnatolij Gustschin <agust@denx.de>
Tue, 24 Apr 2012 22:43:23 +0000 (22:43 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 8 Jul 2012 20:15:08 +0000 (22:15 +0200)
Drop mdelay() macros since we already have a common mdelay() func.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
drivers/block/sata_sil.c
drivers/video/da8xx-fb.c

index 5e7ef5e0de3174c42bb032ca4c037b60d0937110..fb7cd2aae218b3ff87e170151f49a44ae422cf62 100644 (file)
@@ -30,7 +30,6 @@
 
 /* Convert sectorsize to wordsize */
 #define ATA_SECTOR_WORDS (ATA_SECT_SIZE/2)
-#define mdelay(n)   udelay((n)*1000)
 #define virt_to_bus(devno, v)  pci_virt_to_mem(devno, (void *) (v))
 
 static struct sata_info sata_info;
index a2981b18eb50b1e31bdda016478b0ea9135a78ea..30c19b3a43232fa961266c0a89e4a9e0131f3aba 100644 (file)
@@ -121,7 +121,6 @@ struct da8xx_lcd_regs {
 #define LOWER_MARGIN   32
 
 #define calc_fbsize() (panel.plnSizeX * panel.plnSizeY * panel.gdfBytesPP)
-#define mdelay(n) ({unsigned long msec = (n); while (msec--) udelay(1000); })
 
 static struct da8xx_lcd_regs *da8xx_fb_reg_base;