aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/sx.h
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 05:39:08 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:59 -0500
commit30f4218ffc5500e6a622a680f01133f9af65f07d (patch)
tree8d4fdd9dce16b7513a7a0ceb78b76921a9289f97 /drivers/char/sx.h
parent39103494fd0c5325763edd06c88b121a5c21516e (diff)
[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 e01f83cbe299..432aad0a2ddd 100644
--- a/drivers/char/sx.h
+++ b/drivers/char/sx.h
@@ -35,6 +35,7 @@ struct sx_board {
35 void __iomem *base; 35 void __iomem *base;
36 void __iomem *base2; 36 void __iomem *base2;
37 unsigned long hw_base; 37 unsigned long hw_base;
38 resource_size_t hw_len;
38 int eisa_base; 39 int eisa_base;
39 int port_base; /* Number of the first port */ 40 int port_base; /* Number of the first port */
40 struct sx_port *ports; 41 struct sx_port *ports;