aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-07-17 07:05:18 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:10 -0400
commit4969b3a43dd9e234b363f7bf52d0f6c4b6139eea (patch)
treed8f283e628bf89a2f3ca5d55d3981b355854b035 /drivers/char
parente327325f4219e30476c775dbcd8651cd71b5416a (diff)
Char: isicom, proper variables types
irq is int, base is unsigned long 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')
-rw-r--r--drivers/char/isicom.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c
index 2f8aaf8f8232..77a7a4a06620 100644
--- a/drivers/char/isicom.c
+++ b/drivers/char/isicom.c
@@ -184,7 +184,7 @@ static signed char linuxb_to_isib[] = {
184 184
185struct isi_board { 185struct isi_board {
186 unsigned long base; 186 unsigned long base;
187 unsigned char irq; 187 int irq;
188 unsigned char port_count; 188 unsigned char port_count;
189 unsigned short status; 189 unsigned short status;
190 unsigned short port_status; /* each bit for each port */ 190 unsigned short port_status; /* each bit for each port */
@@ -224,7 +224,7 @@ static struct isi_port isi_ports[PORT_COUNT];
224 * it wants to talk. 224 * it wants to talk.
225 */ 225 */
226 226
227static inline int WaitTillCardIsFree(u16 base) 227static inline int WaitTillCardIsFree(unsigned long base)
228{ 228{
229 unsigned int count = 0; 229 unsigned int count = 0;
230 unsigned int a = in_atomic(); /* do we run under spinlock? */ 230 unsigned int a = in_atomic(); /* do we run under spinlock? */
@@ -396,9 +396,9 @@ static inline int __isicom_paranoia_check(struct isi_port const *port,
396 396
397static void isicom_tx(unsigned long _data) 397static void isicom_tx(unsigned long _data)
398{ 398{
399 unsigned long flags; 399 unsigned long flags, base;
400 unsigned int retries; 400 unsigned int retries;
401 short count = (BOARD_COUNT-1), card, base; 401 short count = (BOARD_COUNT-1), card;
402 short txcount, wrd, residue, word_count, cnt; 402 short txcount, wrd, residue, word_count, cnt;
403 struct isi_port *port; 403 struct isi_port *port;
404 struct tty_struct *tty; 404 struct tty_struct *tty;
@@ -1730,17 +1730,13 @@ static unsigned int card_count;
1730static int __devinit isicom_probe(struct pci_dev *pdev, 1730static int __devinit isicom_probe(struct pci_dev *pdev,
1731 const struct pci_device_id *ent) 1731 const struct pci_device_id *ent)
1732{ 1732{
1733 unsigned int ioaddr, signature, index; 1733 unsigned int signature, index;
1734 int retval = -EPERM; 1734 int retval = -EPERM;
1735 u8 pciirq;
1736 struct isi_board *board = NULL; 1735 struct isi_board *board = NULL;
1737 1736
1738 if (card_count >= BOARD_COUNT) 1737 if (card_count >= BOARD_COUNT)
1739 goto err; 1738 goto err;
1740 1739
1741 ioaddr = pci_resource_start(pdev, 3);
1742 /* i.e at offset 0x1c in the PCI configuration register space. */
1743 pciirq = pdev->irq;
1744 dev_info(&pdev->dev, "ISI PCI Card(Device ID 0x%x)\n", ent->device); 1740 dev_info(&pdev->dev, "ISI PCI Card(Device ID 0x%x)\n", ent->device);
1745 1741
1746 /* allot the first empty slot in the array */ 1742 /* allot the first empty slot in the array */
@@ -1751,8 +1747,8 @@ static int __devinit isicom_probe(struct pci_dev *pdev,
1751 } 1747 }
1752 1748
1753 board->index = index; 1749 board->index = index;
1754 board->base = ioaddr; 1750 board->base = pci_resource_start(pdev, 3);
1755 board->irq = pciirq; 1751 board->irq = pdev->irq;
1756 card_count++; 1752 card_count++;
1757 1753
1758 pci_set_drvdata(pdev, board); 1754 pci_set_drvdata(pdev, board);