Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185189
b: refs/heads/master
c: 795877c
h: refs/heads/master
i:
  185187: d7c49eb
v: v3
  • Loading branch information
Rakib Mullick authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 43e1ce6 commit a37d1a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6fc826e4c51d2c54913c2a6d800159a2c7dac4b
refs/heads/master: 795877cfa4a4db0982ac21e095dad9fbdc909647
11 changes: 5 additions & 6 deletions trunk/drivers/char/ip2/ip2main.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static int tracewrap;
/* Macros */
/**********/

#if defined(MODULE) && defined(IP2DEBUG_OPEN)
#ifdef IP2DEBUG_OPEN
#define DBG_CNT(s) printk(KERN_DEBUG "(%s): [%x] ttyc=%d, modc=%x -> %s\n", \
tty->name,(pCh->flags), \
tty->count,/*GET_USE_COUNT(module)*/0,s)
Expand Down Expand Up @@ -487,7 +487,6 @@ static const struct firmware *ip2_request_firmware(void)
return fw;
}

#ifndef MODULE
/******************************************************************************
* ip2_setup:
* str: kernel command line string
Expand Down Expand Up @@ -531,15 +530,13 @@ static int __init ip2_setup(char *str)
return 1;
}
__setup("ip2=", ip2_setup);
#endif /* !MODULE */

static int __init ip2_loadmain(void)
{
int i, j, box;
int err = 0;
i2eBordStrPtr pB = NULL;
int rc = -1;
struct pci_dev *pdev = NULL;
const struct firmware *fw = NULL;

if (poll_only) {
Expand Down Expand Up @@ -612,6 +609,7 @@ static int __init ip2_loadmain(void)
case PCI:
#ifdef CONFIG_PCI
{
struct pci_dev *pdev = NULL;
u32 addr;
int status;

Expand All @@ -626,7 +624,7 @@ static int __init ip2_loadmain(void)

if (pci_enable_device(pdev)) {
dev_err(&pdev->dev, "can't enable device\n");
break;
goto out;
}
ip2config.type[i] = PCI;
ip2config.pci_dev[i] = pci_dev_get(pdev);
Expand All @@ -638,6 +636,8 @@ static int __init ip2_loadmain(void)
dev_err(&pdev->dev, "I/O address error\n");

ip2config.irq[i] = pdev->irq;
out:
pci_dev_put(pdev);
}
#else
printk(KERN_ERR "IP2: PCI card specified but PCI "
Expand All @@ -656,7 +656,6 @@ static int __init ip2_loadmain(void)
break;
} /* switch */
} /* for */
pci_dev_put(pdev);

for (i = 0; i < IP2_MAX_BOARDS; ++i) {
if (ip2config.addr[i]) {
Expand Down

0 comments on commit a37d1a3

Please sign in to comment.