summaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/baycom_epp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hamradio/baycom_epp.c')
-rw-r--r--drivers/net/hamradio/baycom_epp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
index f7b3156fc..d72719e5c 100644
--- a/drivers/net/hamradio/baycom_epp.c
+++ b/drivers/net/hamradio/baycom_epp.c
@@ -48,7 +48,6 @@
#include <linux/string.h>
#include <linux/parport.h>
#include <linux/bitops.h>
-#include <linux/sched.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/processor.h>
@@ -1075,6 +1074,7 @@ static int epp_open(struct device *dev)
if (!(pp->modes & (PARPORT_MODE_PCECPEPP|PARPORT_MODE_PCEPP))) {
printk(KERN_ERR "%s: parport at 0x%lx does not support any EPP mode\n",
bc_drvname, pp->base);
+ parport_release(bc->pdev);
parport_unregister_device(bc->pdev);
return -EIO;
}