summaryrefslogtreecommitdiff
path: root/drivers/char/sx.h
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 10:39:08 (GMT)
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 16:28:59 (GMT)
commit30f4218ffc5500e6a622a680f01133f9af65f07d (patch)
tree8d4fdd9dce16b7513a7a0ceb78b76921a9289f97 /drivers/char/sx.h
parent39103494fd0c5325763edd06c88b121a5c21516e (diff)
downloadlinux-30f4218ffc5500e6a622a680f01133f9af65f07d.tar.xz
[PATCH] Char: sx, request regions
Check regions if they are free before we touch them. Release them in failpaths. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/sx.h')
-rw-r--r--drivers/char/sx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/sx.h b/drivers/char/sx.h
index e01f83c..432aad0 100644
--- a/drivers/char/sx.h
+++ b/drivers/char/sx.h
@@ -35,6 +35,7 @@ struct sx_board {
void __iomem *base;
void __iomem *base2;
unsigned long hw_base;
+ resource_size_t hw_len;
int eisa_base;
int port_base; /* Number of the first port */
struct sx_port *ports;