diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-07-17 07:05:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:10 -0400 |
commit | c4923b4f13156455a9e84f0b918866aef300cc57 (patch) | |
tree | d9f78113bd0986cf7c376838e56e2d442abd294c /drivers/char/cyclades.c | |
parent | 054f5b0aaa58dfc841635e52b6c1cc2b14ec37fc (diff) |
Char: cyclades, fix sparse warning
cyclades, fix sparse warning
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/cyclades.c')
-rw-r--r-- | drivers/char/cyclades.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index b9bd4f67efb4..7b0839426e18 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c | |||
@@ -1890,11 +1890,11 @@ static void cyz_poll(unsigned long arg) | |||
1890 | struct cyclades_card *cinfo; | 1890 | struct cyclades_card *cinfo; |
1891 | struct cyclades_port *info; | 1891 | struct cyclades_port *info; |
1892 | struct tty_struct *tty; | 1892 | struct tty_struct *tty; |
1893 | static struct FIRM_ID *firm_id; | 1893 | struct FIRM_ID __iomem *firm_id; |
1894 | static struct ZFW_CTRL *zfw_ctrl; | 1894 | struct ZFW_CTRL __iomem *zfw_ctrl; |
1895 | static struct BOARD_CTRL *board_ctrl; | 1895 | struct BOARD_CTRL __iomem *board_ctrl; |
1896 | static struct CH_CTRL *ch_ctrl; | 1896 | struct CH_CTRL __iomem *ch_ctrl; |
1897 | static struct BUF_CTRL *buf_ctrl; | 1897 | struct BUF_CTRL __iomem *buf_ctrl; |
1898 | unsigned long expires = jiffies + HZ; | 1898 | unsigned long expires = jiffies + HZ; |
1899 | int card, port; | 1899 | int card, port; |
1900 | 1900 | ||
@@ -2038,7 +2038,6 @@ static int startup(struct cyclades_port *info) | |||
2038 | struct ZFW_CTRL __iomem *zfw_ctrl; | 2038 | struct ZFW_CTRL __iomem *zfw_ctrl; |
2039 | struct BOARD_CTRL __iomem *board_ctrl; | 2039 | struct BOARD_CTRL __iomem *board_ctrl; |
2040 | struct CH_CTRL __iomem *ch_ctrl; | 2040 | struct CH_CTRL __iomem *ch_ctrl; |
2041 | int retval; | ||
2042 | 2041 | ||
2043 | base_addr = card->base_addr; | 2042 | base_addr = card->base_addr; |
2044 | 2043 | ||
@@ -2410,7 +2409,6 @@ block_til_ready(struct tty_struct *tty, struct file *filp, | |||
2410 | struct ZFW_CTRL __iomem *zfw_ctrl; | 2409 | struct ZFW_CTRL __iomem *zfw_ctrl; |
2411 | struct BOARD_CTRL __iomem *board_ctrl; | 2410 | struct BOARD_CTRL __iomem *board_ctrl; |
2412 | struct CH_CTRL __iomem *ch_ctrl; | 2411 | struct CH_CTRL __iomem *ch_ctrl; |
2413 | int retval; | ||
2414 | 2412 | ||
2415 | base_addr = cinfo->base_addr; | 2413 | base_addr = cinfo->base_addr; |
2416 | firm_id = base_addr + ID_ADDRESS; | 2414 | firm_id = base_addr + ID_ADDRESS; |
@@ -4902,7 +4900,7 @@ static int __devinit cyz_load_fw(struct pci_dev *pdev, void __iomem *base_addr, | |||
4902 | struct FIRM_ID __iomem *fid = base_addr + ID_ADDRESS; | 4900 | struct FIRM_ID __iomem *fid = base_addr + ID_ADDRESS; |
4903 | struct CUSTOM_REG __iomem *cust = base_addr; | 4901 | struct CUSTOM_REG __iomem *cust = base_addr; |
4904 | struct ZFW_CTRL __iomem *pt_zfwctrl; | 4902 | struct ZFW_CTRL __iomem *pt_zfwctrl; |
4905 | u8 *tmp; | 4903 | void __iomem *tmp; |
4906 | u32 mailbox, status; | 4904 | u32 mailbox, status; |
4907 | unsigned int i; | 4905 | unsigned int i; |
4908 | int retval; | 4906 | int retval; |
@@ -4964,13 +4962,13 @@ static int __devinit cyz_load_fw(struct pci_dev *pdev, void __iomem *base_addr, | |||
4964 | udelay(100); | 4962 | udelay(100); |
4965 | 4963 | ||
4966 | /* clear memory */ | 4964 | /* clear memory */ |
4967 | for (tmp = base_addr; (void *)tmp < base_addr + RAM_SIZE; tmp++) | 4965 | for (tmp = base_addr; tmp < base_addr + RAM_SIZE; tmp++) |
4968 | cy_writeb(tmp, 255); | 4966 | cy_writeb(tmp, 255); |
4969 | if (mailbox != 0) { | 4967 | if (mailbox != 0) { |
4970 | /* set window to last 512K of RAM */ | 4968 | /* set window to last 512K of RAM */ |
4971 | cy_writel(&ctl_addr->loc_addr_base, WIN_RAM + RAM_SIZE); | 4969 | cy_writel(&ctl_addr->loc_addr_base, WIN_RAM + RAM_SIZE); |
4972 | //sleep(1); | 4970 | //sleep(1); |
4973 | for (tmp = base_addr; (void *)tmp < base_addr + RAM_SIZE; tmp++) | 4971 | for (tmp = base_addr; tmp < base_addr + RAM_SIZE; tmp++) |
4974 | cy_writeb(tmp, 255); | 4972 | cy_writeb(tmp, 255); |
4975 | /* set window to beginning of RAM */ | 4973 | /* set window to beginning of RAM */ |
4976 | cy_writel(&ctl_addr->loc_addr_base, WIN_RAM); | 4974 | cy_writel(&ctl_addr->loc_addr_base, WIN_RAM); |