14 #include <linux/pci.h>
15 #include <linux/export.h>
16 #include <linux/slab.h>
23 struct ssb_bus *ssb = pci_get_drvdata(dev);
38 struct ssb_bus *ssb = pci_get_drvdata(dev);
53 # define ssb_pcihost_suspend NULL
54 # define ssb_pcihost_resume NULL
71 name = dev_name(&dev->
dev);
81 pci_read_config_dword(dev, 0x40, &val);
82 if ((val & 0x0000ff00) != 0)
83 pci_write_config_dword(dev, 0x40, val & 0xffff00ff);
85 err = ssb_bus_pcibus_register(ssb, dev);
87 goto err_pci_release_regions;
89 pci_set_drvdata(dev, ssb);
94 err_pci_release_regions:
103 static void ssb_pcihost_remove(
struct pci_dev *dev)
105 struct ssb_bus *ssb = pci_get_drvdata(dev);
111 pci_set_drvdata(dev,
NULL);
116 driver->
probe = ssb_pcihost_probe;
117 driver->
remove = ssb_pcihost_remove;
121 return pci_register_driver(driver);