|
@@ -24,6 +24,7 @@
|
|
|
|
|
|
#include <linux/pci-epc.h>
|
|
#include <linux/pci-epc.h>
|
|
#include <linux/pci-epf.h>
|
|
#include <linux/pci-epf.h>
|
|
|
|
+#include <linux/pci-ep-cfs.h>
|
|
|
|
|
|
static struct bus_type pci_epf_bus_type;
|
|
static struct bus_type pci_epf_bus_type;
|
|
static struct device_type pci_epf_type;
|
|
static struct device_type pci_epf_type;
|
|
@@ -149,6 +150,7 @@ EXPORT_SYMBOL_GPL(pci_epf_alloc_space);
|
|
*/
|
|
*/
|
|
void pci_epf_unregister_driver(struct pci_epf_driver *driver)
|
|
void pci_epf_unregister_driver(struct pci_epf_driver *driver)
|
|
{
|
|
{
|
|
|
|
+ pci_ep_cfs_remove_epf_group(driver->group);
|
|
driver_unregister(&driver->driver);
|
|
driver_unregister(&driver->driver);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(pci_epf_unregister_driver);
|
|
EXPORT_SYMBOL_GPL(pci_epf_unregister_driver);
|
|
@@ -178,6 +180,8 @@ int __pci_epf_register_driver(struct pci_epf_driver *driver,
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
|
|
+ driver->group = pci_ep_cfs_add_epf_group(driver->driver.name);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(__pci_epf_register_driver);
|
|
EXPORT_SYMBOL_GPL(__pci_epf_register_driver);
|