All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Smolorz <smolorz@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH] can: Free I/O region when unloading the xeno_can_isa.ko driver
Date: Mon, 23 Nov 2009 15:21:32 +0100	[thread overview]
Message-ID: <200911231521.32461.smolorz@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 119 bytes --]

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

Signed-off-by: Sebastian Smolorz <smolorz@domain.hid>


[-- Attachment #2: rtcan_isa.diff --]
[-- Type: text/x-patch, Size: 779 bytes --]

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 <wg@domain.hid>
  *
- * Copyright (C) 2005, 2006 Sebastian Smolorz
- *                          <Sebastian.Smolorz@domain.hid>
+ * Copyright (C) 2005, 2006, 2009 Sebastian Smolorz
+ *                               <smolorz@domain.hid>
  *
  *
  * 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);
 	}
 }

             reply	other threads:[~2009-11-23 14:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23 14:21 Sebastian Smolorz [this message]
2009-11-23 17:37 ` [Xenomai-core] [PATCH] can: Free I/O region when unloading the xeno_can_isa.ko driver Wolfgang Grandegger
2009-11-23 18:05   ` Jan Kiszka
2009-11-23 18:22     ` Wolfgang Grandegger
2009-11-23 18:34   ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200911231521.32461.smolorz@domain.hid \
    --to=smolorz@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.