fix warning in drivers/net/appletalk/cops.c

drivers/net/appletalk/cops.c: In function ‘cops_reset’:
drivers/net/appletalk/cops.c:507: warning: comparison of distinct pointer
types lacks a cast

by replacing hand-woven msleep() with call to msleep()

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by Jeff Garzik and committed by Jeff Garzik 7ab267d4 97ac8cae

+5 -11
+5 -11
drivers/net/appletalk/cops.c
··· 499 { 500 outb(0, ioaddr+DAYNA_RESET); /* Assert the reset port */ 501 inb(ioaddr+DAYNA_RESET); /* Clear the reset */ 502 - if(sleep) 503 - { 504 - long snap=jiffies; 505 - 506 - /* Let card finish initializing, about 1/3 second */ 507 - while (time_before(jiffies, snap + HZ/3)) 508 - schedule(); 509 - } 510 - else 511 - mdelay(333); 512 } 513 netif_wake_queue(dev); 514 - return; 515 } 516 517 static void cops_load (struct net_device *dev)
··· 499 { 500 outb(0, ioaddr+DAYNA_RESET); /* Assert the reset port */ 501 inb(ioaddr+DAYNA_RESET); /* Clear the reset */ 502 + if (sleep) 503 + msleep(333); 504 + else 505 + mdelay(333); 506 } 507 + 508 netif_wake_queue(dev); 509 } 510 511 static void cops_load (struct net_device *dev)