Skip to contentSkip to conversation

eicon/s_bri: replace schedule_timeout()

PATCH New Nishanth Aravamudan 1 participant 2 messages Jul 23, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eicon/s_bri: replace schedule_timeout()

I would appreciate any comments from the janitors list.

Thanks,
Nish

Applys-to: 2.6.7

Description: Replace diva_os_sleep() with msleep().

drivers/isdn/hardware/eicon/s_bri.c +3 -3
@@ -367,7 +367,7 @@ static int load_bri_hardware (PISDN_ADAP
  addrHi =   Port + ((IoAdapter->Properties.Bus==BUS_PCI) ? M_PCI_ADDRH : ADDRH);
  addrLo = Port + ADDR ;
  ioaddr = Port + DATA ;
- diva_os_wait (100);
+ msleep (100);
 /*
  * recover
  */
@@ -382,7 +382,7 @@ static int load_bri_hardware (PISDN_ADAP
  outppw (addrLo, 0) ;
  for ( i = 0 ; i < 0x8000 ; outppw (ioaddr, 0), ++i ) ;
  DIVA_OS_MEM_DETACH_PORT(IoAdapter, Port);
- diva_os_wait (100) ;
+ msleep (100) ;
 /*
  * download protocol and dsp files
  */
@@ -445,7 +445,7 @@ static int load_bri_hardware (PISDN_ADAP
  ioaddr = Port + DATA ;
  for ( i = 0 ; i < 300 ; ++i )
  {
-  diva_os_wait (10) ;
+  msleep (10) ;
   outpp (addrHi, (byte)((BRI_UNCACHED_ADDR (IoAdapter->MemoryBase + \
       IoAdapter->MemorySize - BRI_SHARED_RAM_SIZE)) >> 16)) ;
   outppw (addrLo, 0x1e) ;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw

PATCH 1/1 eicon/s_bri: replace schedule_timeout()

Please find the corrected patch below. I would appreciate any comments from the janitors list.

Thanks,
Nish

Applys-to: 2.6.7

Description: Replace diva_os_wait() with msleep().

drivers/isdn/hardware/eicon/s_bri.c +3 -3
@@ -367,7 +367,7 @@ static int load_bri_hardware (PISDN_ADAP
  addrHi =   Port + ((IoAdapter->Properties.Bus==BUS_PCI) ? M_PCI_ADDRH : ADDRH);
  addrLo = Port + ADDR ;
  ioaddr = Port + DATA ;
- diva_os_wait (100);
+ mdelay (100);
 /*
  * recover
  */
@@ -382,7 +382,7 @@ static int load_bri_hardware (PISDN_ADAP
  outppw (addrLo, 0) ;
  for ( i = 0 ; i < 0x8000 ; outppw (ioaddr, 0), ++i ) ;
  DIVA_OS_MEM_DETACH_PORT(IoAdapter, Port);
- diva_os_wait (100) ;
+ mdelay (100) ;
 /*
  * download protocol and dsp files
  */
@@ -445,7 +445,7 @@ static int load_bri_hardware (PISDN_ADAP
  ioaddr = Port + DATA ;
  for ( i = 0 ; i < 300 ; ++i )
  {
-  diva_os_wait (10) ;
+  mdelay (10) ;
   outpp (addrHi, (byte)((BRI_UNCACHED_ADDR (IoAdapter->MemoryBase + \
       IoAdapter->MemorySize - BRI_SHARED_RAM_SIZE)) >> 16)) ;
   outppw (addrLo, 0x1e) ;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors