Signed-off-by: Nathan Hintz <[email protected]>

--- /dev/null
+++ target/linux/brcm47xx/patches-3.6/244-bcma-honor-debug-option.patch
@@ -0,0 +1,43 @@
+--- a/drivers/bcma/Makefile
++++ b/drivers/bcma/Makefile
+@@ -10,5 +10,3 @@
+ bcma-$(CONFIG_BCMA_HOST_PCI)          += host_pci.o
+ bcma-$(CONFIG_BCMA_HOST_SOC)          += host_soc.o
+ obj-$(CONFIG_BCMA)                    += bcma.o
+-
+-ccflags-$(CONFIG_BCMA_DEBUG)          := -DDEBUG
+--- a/drivers/bcma/bcma_private.h
++++ b/drivers/bcma/bcma_private.h
+@@ -16,8 +16,12 @@
+       pr_warn("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
+ #define bcma_info(bus, fmt, ...) \
+       pr_info("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
++#ifdef CONFIG_BCMA_DEBUG
+ #define bcma_debug(bus, fmt, ...) \
+       pr_debug("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
++#else
++#define bcma_debug(bus, fmt, ...)
++#endif
+ 
+ struct bcma_bus;
+ 
+--- a/drivers/bcma/driver_mips.c
++++ b/drivers/bcma/driver_mips.c
+@@ -177,6 +177,7 @@
+       bcma_core_mips_set_irq(core, irq);
+ }
+ 
++#ifdef CONFIG_BCMA_DEBUG
+ static void bcma_core_mips_print_irq(struct bcma_device *dev, unsigned int 
irq)
+ {
+       int i;
+@@ -195,6 +196,9 @@
+               bcma_core_mips_print_irq(core, bcma_core_mips_irq(core));
+       }
+ }
++#else
++#define bcma_core_mips_dump_irq(bus)
++#endif
+ 
+ u32 bcma_cpu_clock(struct bcma_drv_mips *mcore)
+ {

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to