File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,9 @@ static int num_force_kipmid;
305
305
#ifdef CONFIG_PCI
306
306
static int pci_registered ;
307
307
#endif
308
+ #ifdef CONFIG_ACPI
309
+ static int pnp_registered ;
310
+ #endif
308
311
#ifdef CONFIG_PPC_OF
309
312
static int of_registered ;
310
313
#endif
@@ -3359,6 +3362,7 @@ static __devinit int init_ipmi_si(void)
3359
3362
3360
3363
#ifdef CONFIG_ACPI
3361
3364
pnp_register_driver (& ipmi_pnp_driver );
3365
+ pnp_registered = 1 ;
3362
3366
#endif
3363
3367
3364
3368
#ifdef CONFIG_DMI
@@ -3526,7 +3530,8 @@ static __exit void cleanup_ipmi_si(void)
3526
3530
pci_unregister_driver (& ipmi_pci_driver );
3527
3531
#endif
3528
3532
#ifdef CONFIG_ACPI
3529
- pnp_unregister_driver (& ipmi_pnp_driver );
3533
+ if (pnp_registered )
3534
+ pnp_unregister_driver (& ipmi_pnp_driver );
3530
3535
#endif
3531
3536
3532
3537
#ifdef CONFIG_PPC_OF
You can’t perform that action at this time.
0 commit comments