|
@@ -4346,6 +4346,10 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
|
|
|
if (err)
|
|
|
goto out_remove_sysfs;
|
|
|
|
|
|
+ err = iwl_dbgfs_register(priv, DRV_NAME);
|
|
|
+ if (err)
|
|
|
+ IWL_ERR(priv, "failed to create debugfs files. Ignoring error: %d\n", err);
|
|
|
+
|
|
|
err = iwl_rfkill_init(priv);
|
|
|
if (err)
|
|
|
IWL_ERR(priv, "Unable to initialize RFKILL system. "
|
|
@@ -4396,6 +4400,8 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
|
|
|
|
|
|
IWL_DEBUG_INFO(priv, "*** UNLOAD DRIVER ***\n");
|
|
|
|
|
|
+ iwl_dbgfs_unregister(priv);
|
|
|
+
|
|
|
set_bit(STATUS_EXIT_PENDING, &priv->status);
|
|
|
|
|
|
if (priv->mac80211_registered) {
|