2.4.0-prerelease: radio card request_region fixes
PATCH 1/1 2.4.0-prerelease: radio card request_region fixes
Many of the radio card drivers got the request_region sense inverted and make a horrible mess on insmod. I've tested the patches in this set for radio-aimslab and radio-aztech locally. The others are "obviously correct" since they are the same core code.
media/radio/radio-aimslab.c renamed from media/radio/radio-aimslab.c.stock +1 -1
@@ -338,7 +338,7 @@return -EINVAL ; } -if (request_region (io,2 ,"rtrack" )) +if (!request_region (io,2 ,"rtrack" )) {printk (KERN_ERR "rtrack: port 0x%x already in use\n" , io);return -EBUSY ;
media/radio/radio-aztech.c renamed from media/radio/radio-aztech.c.stock +1 -1
@@ -289,7 +289,7 @@return -EINVAL ; } -if (request_region (io,2 ,"aztech" )) +if (!request_region (io,2 ,"aztech" )) {printk (KERN_ERR "aztech: port 0x%x already in use\n" , io);return -EBUSY ;
media/radio/radio-rtrack2.c renamed from media/radio/radio-rtrack2.c.stock +1 -1
@@ -230,7 +230,7 @@printk (KERN_ERR "You must set an I/O address with io=0x20c or io=0x30c\n" );return -EINVAL ; } -if (request_region (io,4 ,"rtrack2" )) +if (!request_region (io,4 ,"rtrack2" )) {printk (KERN_ERR "rtrack2: port 0x%x already in use\n" , io);return -EBUSY ;
media/radio/radio-sf16fmi.c renamed from media/radio/radio-sf16fmi.c.stock +1 -1
@@ -291,7 +291,7 @@printk (KERN_ERR "You must set an I/O address with io=0x???\n" );return -EINVAL ; } -if (request_region (io,2 ,"fmi" )) +if (!request_region (io,2 ,"fmi" )) {printk (KERN_ERR "fmi: port 0x%x already in use\n" , io);return -EBUSY ;
media/radio/radio-terratec.c renamed from media/radio/radio-terratec.c.stock +1 -1
@@ -309,7 +309,7 @@printk (KERN_ERR "You must set an I/O address with io=0x???\n" );return -EINVAL ; } -if (request_region (io,2 ,"terratec" )) +if (!request_region (io,2 ,"terratec" )) {printk (KERN_ERR "TerraTec: port 0x%x already in use\n" , io);return -EBUSY ;
media/radio/radio-trust.c renamed from media/radio/radio-trust.c.stock +1 -1
@@ -300,7 +300,7 @@printk (KERN_ERR "You must set an I/O address with io=0x???\n" );return -EINVAL ; } -if (request_region (io,2 ,"Trust FM Radio" )) { +if (!request_region (io,2 ,"Trust FM Radio" )) {printk (KERN_ERR "trust: port 0x%x already in use\n" , io);return -EBUSY ; }
media/radio/radio-typhoon.c renamed from media/radio/radio-typhoon.c.stock +1 -1
@@ -350,7 +350,7 @@ printk(KERN_INFO BANNER); io = typhoon_unit.iobase; -if (request_region (io,8 ,"typhoon" )) { +if (!request_region (io,8 ,"typhoon" )) {printk (KERN_ERR "radio-typhoon: port 0x%x already in use\n" , typhoon_unit.iobase);return -EBUSY ;
media/radio/radio-zoltrix.c renamed from media/radio/radio-zoltrix.c.stock +1 -1
@@ -361,7 +361,7 @@ } zoltrix_radio.priv = &zoltrix_unit; -if (request_region (io,2 ,"zoltrix" )) { +if (!request_region (io,2 ,"zoltrix" )) {printk (KERN_ERR "zoltrix: port 0x%x already in use\n" , io);return -EBUSY ; }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/