[media] radio/aimslab: use mdelay instead of udelay
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Jan 2015 21:17:42 +0000 (18:17 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 13:07:09 +0000 (11:07 -0200)
Large udelay values are not allowed on the ARM architecture
and result in a build error like

ERROR: "__bad_udelay" [drivers/media/radio/radio-aimslab.ko] undefined!

This changes the aimslab radio driver to use an equivalent mdelay
statement.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/radio/radio-aimslab.c

index a739ad4..ea93087 100644 (file)
@@ -129,11 +129,11 @@ static int rtrack_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
        } else if (curvol < vol) {
                outb(0x98, isa->io);    /* volume up + sigstr + on      */
                for (; curvol < vol; curvol++)
-                       udelay(3000);
+                       mdelay(3);
        } else if (curvol > vol) {
                outb(0x58, isa->io);    /* volume down + sigstr + on    */
                for (; curvol > vol; curvol--)
-                       udelay(3000);
+                       mdelay(3);
        }
        outb(0xd8, isa->io);            /* volume steady + sigstr + on  */
        rt->curvol = vol;