Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ab267d4 authored by Jeff Garzik's avatar Jeff Garzik Committed by Jeff Garzik
Browse files

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: default avatarJeff Garzik <jgarzik@redhat.com>
parent 97ac8cae
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -500,18 +500,12 @@ static void cops_reset(struct net_device *dev, int sleep)
                outb(0, ioaddr+DAYNA_RESET);	/* Assert the reset port */
                inb(ioaddr+DAYNA_RESET);	/* Clear the reset */
		if (sleep)
                {
                        long snap=jiffies;

			/* Let card finish initializing, about 1/3 second */
			while (time_before(jiffies, snap + HZ/3))
                                schedule();
                }
			msleep(333);
		else
			mdelay(333);
        }

	netif_wake_queue(dev);
	return;
}

static void cops_load (struct net_device *dev)