summaryrefslogtreecommitdiffstats
path: root/drivers/char/sx.h
diff options
context:
space:
mode:
authorJiri Slaby2006-12-08 11:39:08 +0100
committerLinus Torvalds2006-12-08 17:28:59 +0100
commit30f4218ffc5500e6a622a680f01133f9af65f07d (patch)
tree8d4fdd9dce16b7513a7a0ceb78b76921a9289f97 /drivers/char/sx.h
parent[PATCH] Char: sx, use pci_iomap (diff)
downloadkernel-qcow2-linux-30f4218ffc5500e6a622a680f01133f9af65f07d.tar.gz
kernel-qcow2-linux-30f4218ffc5500e6a622a680f01133f9af65f07d.tar.xz
kernel-qcow2-linux-30f4218ffc5500e6a622a680f01133f9af65f07d.zip
[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 {
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;