Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210925
b: refs/heads/master
c: 561f818
h: refs/heads/master
i:
  210923: 65e329a
v: v3
  • Loading branch information
Yinghai Lu authored and Linus Torvalds committed Sep 23, 2010
1 parent 6302ff5 commit adbd67d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: f501ed524b26ba1b739b7f7feb0a0e1496878769
refs/heads/master: 561f8182dbf24b1be9207038aa5f82e34be4bad1
7 changes: 6 additions & 1 deletion trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ static int num_force_kipmid;
#ifdef CONFIG_PCI
static int pci_registered;
#endif
#ifdef CONFIG_ACPI
static int pnp_registered;
#endif
#ifdef CONFIG_PPC_OF
static int of_registered;
#endif
Expand Down Expand Up @@ -3359,6 +3362,7 @@ static __devinit int init_ipmi_si(void)

#ifdef CONFIG_ACPI
pnp_register_driver(&ipmi_pnp_driver);
pnp_registered = 1;
#endif

#ifdef CONFIG_DMI
Expand Down Expand Up @@ -3526,7 +3530,8 @@ static __exit void cleanup_ipmi_si(void)
pci_unregister_driver(&ipmi_pci_driver);
#endif
#ifdef CONFIG_ACPI
pnp_unregister_driver(&ipmi_pnp_driver);
if (pnp_registered)
pnp_unregister_driver(&ipmi_pnp_driver);
#endif

#ifdef CONFIG_PPC_OF
Expand Down

0 comments on commit adbd67d

Please sign in to comment.