ag71xx: replace delay with sleep calls
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 7 Dec 2014 16:53:09 +0000 (16:53 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 7 Dec 2014 16:53:09 +0000 (16:53 +0000)
commitc8e30e3a904b407d9f2c600cffaeae31b93e2b10
tree5b0edaad0d483ec9cfbb9f3a68bbffcf9e3fec09
parenta3bdcba643e806ecd1b5ffa58093b3872c1624ad
ag71xx: replace delay with sleep calls

I don't see that we're in an atomic context so there's no need to
busy-wait. Therefore replace the delay with sleep calls.
See also Documentation/timers/timers-howto.txt. It states:
"In general, use of mdelay is discouraged and code should
be refactored to allow for the use of msleep."

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43539 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c