Skip to contentSkip to conversation

Remove remaining mdelay() macros

PATCH New Anatolij Gustschin 3 participants 4 messages Apr 25, 2012 – Jul 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove remaining mdelay() macros

Drop mdelay() macros since we already have a common mdelay() func.

---
 drivers/block/sata_sil.c |    1 -
 drivers/video/da8xx-fb.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
drivers/block/sata_sil.c +0 -1
index 5e7ef5e..fb7cd2a 100644
@@ -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;
drivers/video/da8xx-fb.c +0 -1
index a2981b1..30c19b3 100644
@@ -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;
 
Signature · 1 line
1.7.7.6
#2 lore raw

PATCH 1/1 Remove remaining mdelay() macros

In reply to Anatolij Gustschin
Quoted 7 lines · On Wed, 25 Apr 2012 10:43:23 +0200 Anatolij Gustschin <[email protected]> wrote:

Drop mdelay() macros since we already have a common mdelay() func.

---
 drivers/block/sata_sil.c |    1 -
 drivers/video/da8xx-fb.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

Applied to u-boot-staging/agust at denx.de.

#3 lore raw

PATCH 1/1 Remove remaining mdelay() macros

In reply to Anatolij Gustschin

Dear Anatolij Gustschin,

Quoted 7 lines · In message <[email protected]> you wrote:

Drop mdelay() macros since we already have a common mdelay() func.

---
 drivers/block/sata_sil.c |    1 -
 drivers/video/da8xx-fb.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Due to lack of disk space, this fortune database has been discontinued.