Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94126
b: refs/heads/master
c: 30d55e7
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Apr 28, 2008
1 parent caf6c51 commit 35c446a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: f3429545d03a553c6a3e9fcf60ddea31819848ad
refs/heads/master: 30d55e71a81b1f5a8136f191dc9f4c21f18e77e6
10 changes: 6 additions & 4 deletions trunk/drivers/isdn/hisax/hisax_fcpcipnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static struct pci_device_id fcpci_ids[] = {

MODULE_DEVICE_TABLE(pci, fcpci_ids);

#ifdef __ISAPNP__
#ifdef CONFIG_PNP
static struct pnp_device_id fcpnp_ids[] __devinitdata = {
{
.id = "AVM0900",
Expand Down Expand Up @@ -914,7 +914,7 @@ static int __devinit fcpci_probe(struct pci_dev *pdev,
return retval;
}

#ifdef __ISAPNP__
#ifdef CONFIG_PNP
static int __devinit fcpnp_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
{
struct fritz_adapter *adapter;
Expand Down Expand Up @@ -974,6 +974,8 @@ static struct pnp_driver fcpnp_driver = {
.remove = __devexit_p(fcpnp_remove),
.id_table = fcpnp_ids,
};
#else
static struct pnp_driver fcpnp_driver;
#endif

static void __devexit fcpci_remove(struct pci_dev *pdev)
Expand Down Expand Up @@ -1001,7 +1003,7 @@ static int __init hisax_fcpcipnp_init(void)
retval = pci_register_driver(&fcpci_driver);
if (retval)
return retval;
#ifdef __ISAPNP__
#ifdef CONFIG_PNP
retval = pnp_register_driver(&fcpnp_driver);
if (retval < 0) {
pci_unregister_driver(&fcpci_driver);
Expand All @@ -1013,7 +1015,7 @@ static int __init hisax_fcpcipnp_init(void)

static void __exit hisax_fcpcipnp_exit(void)
{
#ifdef __ISAPNP__
#ifdef CONFIG_PNP
pnp_unregister_driver(&fcpnp_driver);
#endif
pci_unregister_driver(&fcpci_driver);
Expand Down

0 comments on commit 35c446a

Please sign in to comment.