diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2006-12-08 02:39:08 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 08:28:59 -0800 |
commit | 30f4218ffc5500e6a622a680f01133f9af65f07d (patch) | |
tree | 8d4fdd9dce16b7513a7a0ceb78b76921a9289f97 /drivers/char/sx.h | |
parent | 39103494fd0c5325763edd06c88b121a5c21516e (diff) | |
download | linux-3.10-30f4218ffc5500e6a622a680f01133f9af65f07d.tar.gz linux-3.10-30f4218ffc5500e6a622a680f01133f9af65f07d.tar.bz2 linux-3.10-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/sx.h b/drivers/char/sx.h index e01f83cbe29..432aad0a2dd 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; |