[Cbe-oss-dev] [FYI 6/27] ps3: gelic ether driver
Arnd Bergmann
arnd at arndb.de
Sat Dec 2 03:03:22 EST 2006
This driver, and others use functions from interrupt.c
and system-bus.c that are not exported, so you can't build
them as modules. This patch exports all those I found missing.
In the long run, the lv1 calls done here should be handled
under the cover by the ps3 platform bus, but for now this
patch helps.
Signed-off-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>
Index: linux-2.6/arch/powerpc/platforms/ps3/interrupt.c
===================================================================
--- linux-2.6.orig/arch/powerpc/platforms/ps3/interrupt.c
+++ linux-2.6/arch/powerpc/platforms/ps3/interrupt.c
@@ -69,6 +69,7 @@ int ps3_alloc_io_irq(unsigned int interr
return 0;
}
+EXPORT_SYMBOL_GPL(ps3_alloc_io_irq);
int ps3_free_io_irq(unsigned int virq)
{
@@ -84,6 +85,7 @@ int ps3_free_io_irq(unsigned int virq)
return result;
}
+EXPORT_SYMBOL_GPL(ps3_free_io_irq);
/**
* ps3_alloc_event_irq - Allocate a virq for use with a system event.
@@ -115,6 +117,7 @@ int ps3_alloc_event_irq(unsigned int *vi
return 0;
}
+EXPORT_SYMBOL_GPL(ps3_alloc_event_irq);
int ps3_free_event_irq(unsigned int virq)
{
@@ -133,6 +136,7 @@ int ps3_free_event_irq(unsigned int virq
pr_debug(" <- %s:%d\n", __func__, __LINE__);
return result;
}
+EXPORT_SYMBOL_GPL(ps3_free_event_irq);
int ps3_send_event_locally(unsigned int virq)
{
@@ -176,6 +180,7 @@ int ps3_connect_event_irq(const struct p
return 0;
}
+EXPORT_SYMBOL_GPL(ps3_connect_event_irq);
int ps3_disconnect_event_irq(const struct ps3_device_id *did,
unsigned int interrupt_id, unsigned int virq)
@@ -198,6 +203,7 @@ int ps3_disconnect_event_irq(const struc
pr_debug(" <- %s:%d\n", __func__, __LINE__);
return result;
}
+EXPORT_SYMBOL_GPL(ps3_disconnect_event_irq);
/**
* ps3_alloc_vuart_irq - Configure the system virtual uart virq.
Index: linux-2.6/drivers/ps3/system-bus.c
===================================================================
--- linux-2.6.orig/drivers/ps3/system-bus.c
+++ linux-2.6/drivers/ps3/system-bus.c
@@ -56,6 +56,7 @@ int ps3_mmio_region_create(struct ps3_mm
dump_mmio_region(r);
return result;
}
+EXPORT_SYMBOL_GPL(ps3_mmio_region_create);
int ps3_free_mmio_region(struct ps3_mmio_region *r)
{
@@ -71,6 +72,7 @@ int ps3_free_mmio_region(struct ps3_mmio
r->lpar_addr = r->len = r->bus_addr = 0;
return result;
}
+EXPORT_SYMBOL_GPL(ps3_free_mmio_region);
static int ps3_system_bus_match(struct device *_dev,
struct device_driver *_drv)
More information about the cbe-oss-dev
mailing list