Module: xenomai-jki
Branch: for-upstream
Commit: c84135a5f94a7201281b6f9f7fb29bad12d72368
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=c84135a5f94a7201281b6f9f7fb29bad12d72368

Author: Sebastian Smolorz <smol...@rts.uni-hannover.de>
Date:   Mon Nov 23 19:25:40 2009 +0100

can: Free I/O region when unloading the xeno_can_isa.ko driver

Signed-off-by: Sebastian Smolorz <smol...@rts.uni-hannover.de>
Signed-off-by: Wolfgang Grandegger <w...@grandegger.com>
Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 ksrc/drivers/can/sja1000/rtcan_isa.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ksrc/drivers/can/sja1000/rtcan_isa.c 
b/ksrc/drivers/can/sja1000/rtcan_isa.c
index 6debb16..ec32393 100644
--- a/ksrc/drivers/can/sja1000/rtcan_isa.c
+++ b/ksrc/drivers/can/sja1000/rtcan_isa.c
@@ -1,8 +1,8 @@
 /*
  * Copyright (C) 2006 Wolfgang Grandegger <w...@grandegger.com>
  *
- * Copyright (C) 2005, 2006 Sebastian Smolorz
- *                          <sebastian.smol...@stud.uni-hannover.de>
+ * Copyright (C) 2005, 2006, 2009 Sebastian Smolorz
+ *                               <smol...@rts.uni-hannover.de>
  *
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -189,6 +189,7 @@ static void rtcan_isa_exit(void)
                if (!dev)
                        continue;
                rtcan_sja1000_unregister(dev);
+               release_region(io[i], RTCAN_ISA_PORT_SIZE);
                rtcan_dev_free(dev);
        }
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to