]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
bcma: clean exports of functions
authorRafał Miłecki <zajec5@gmail.com>
Fri, 17 Jun 2011 23:01:59 +0000 (01:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 20 Jun 2011 19:34:19 +0000 (15:34 -0400)
Function managing IRQs is needed for external drivers like b43.
On the other side we do not expect writing any hosts drivers outside of
bcma, so this is safe to do not export functions related to this.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/bcma_private.h
drivers/bcma/driver_pci.c
drivers/bcma/main.c
include/linux/bcma/bcma_driver_pci.h

index 12a75ab3dd239b503a84826ec5ba7e8d935accd1..4228736de0e8adb13a85d18a35219468fd0aec34 100644 (file)
@@ -13,8 +13,8 @@
 struct bcma_bus;
 
 /* main.c */
-extern int bcma_bus_register(struct bcma_bus *bus);
-extern void bcma_bus_unregister(struct bcma_bus *bus);
+int bcma_bus_register(struct bcma_bus *bus);
+void bcma_bus_unregister(struct bcma_bus *bus);
 
 /* scan.c */
 int bcma_bus_scan(struct bcma_bus *bus);
index 789d68b4858baa56872e290e7d4780b258702092..b0c19ede0d2e170fcd441a11a1d04f9cae075de7 100644 (file)
@@ -184,3 +184,4 @@ int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core,
 out:
        return err;
 }
+EXPORT_SYMBOL_GPL(bcma_core_pci_irq_ctl);
index 11e96dc6011afcc89dd2e72d93a6898b15a97e60..ba15105cc23af1cbfb526581a64c5361dce8b578 100644 (file)
@@ -160,13 +160,11 @@ int bcma_bus_register(struct bcma_bus *bus)
 
        return 0;
 }
-EXPORT_SYMBOL_GPL(bcma_bus_register);
 
 void bcma_bus_unregister(struct bcma_bus *bus)
 {
        bcma_unregister_cores(bus);
 }
-EXPORT_SYMBOL_GPL(bcma_bus_unregister);
 
 int __bcma_driver_register(struct bcma_driver *drv, struct module *owner)
 {
index b7e191cf00ec1a33c71241bea402c5823ef40fc3..3871b668caf91a507268954dab35282afaedb735 100644 (file)
@@ -85,5 +85,7 @@ struct bcma_drv_pci {
 #define pcicore_write32(pc, offset, val)       bcma_write32((pc)->core, offset, val)
 
 extern void bcma_core_pci_init(struct bcma_drv_pci *pc);
+extern int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc,
+                                struct bcma_device *core, bool enable);
 
 #endif /* LINUX_BCMA_DRIVER_PCI_H_ */