if (!error)
return 0;
- SDLX_MSG(("%s: pci_module_init failed 0x%x\n", __func__, error));
+ SDLX_MSG(("%s: pci_register_driver failed 0x%x\n", __func__, error));
#endif /* BCMPLATFORM_BUS */
return error;
#define __devexit_p(x) x
#endif
-#define pci_module_init pci_register_driver
-
#define netif_down(dev)
-/* Power management related macro & routines */
-#define PCI_SAVE_STATE(a, b) pci_save_state(a)
-#define PCI_RESTORE_STATE(a, b) pci_restore_state(a)
-
/* suspend args */
#define DRV_SUSPEND_STATE_TYPE pm_message_t
wl_down(wl);
wl->pub->hw_up = FALSE;
WL_UNLOCK(wl);
- PCI_SAVE_STATE(pdev, wl->pci_psstate);
+ pci_save_state(pdev, wl->pci_psstate);
pci_disable_device(pdev);
return pci_set_power_state(pdev, PCI_D3hot);
}
if (err)
return err;
- PCI_RESTORE_STATE(pdev, wl->pci_psstate);
+ pci_restore_state(pdev, wl->pci_psstate);
err = pci_enable_device(pdev);
if (err)
#endif /* BCMDBG */
#ifndef BCMSDIO
- error = pci_module_init(&wl_pci_driver);
+ error = pci_register_driver(&wl_pci_driver);
if (!error)
return 0;