diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-27 12:43:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-18 09:14:59 -0500 |
commit | e08a8c9dc7d247ec2a98ea2d7ac5ecea6af5593c (patch) | |
tree | 38d618d585c6c330727cd130c4fe95be3a4450ec /drivers/media/radio/radio-sf16fmi.c | |
parent | dd49f30ca032464839085ec3a54dd9917829c891 (diff) |
V4L/DVB (7093): radio-sf16fmi: fix request_region()
isapnp_fmi_probe attaches device. However, if request_region() fails, the
device isn't disattached.
Reviewed-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/radio/radio-sf16fmi.c')
-rw-r--r-- | drivers/media/radio/radio-sf16fmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c index 3118bdab3183..53e114857377 100644 --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c | |||
@@ -361,6 +361,7 @@ static int __init fmi_init(void) | |||
361 | } | 361 | } |
362 | if (!request_region(io, 2, "radio-sf16fmi")) { | 362 | if (!request_region(io, 2, "radio-sf16fmi")) { |
363 | printk(KERN_ERR "radio-sf16fmi: port 0x%x already in use\n", io); | 363 | printk(KERN_ERR "radio-sf16fmi: port 0x%x already in use\n", io); |
364 | pnp_device_detach(dev); | ||
364 | return -EBUSY; | 365 | return -EBUSY; |
365 | } | 366 | } |
366 | 367 | ||