aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-15 13:12:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-15 13:12:43 +0000
commit81b5773b7fe6eeade8c7b7f70bdc7825e3ff4353 (patch)
tree7afccca5bb60770356a29f5a00065f69301abaca /target/linux/ar71xx/files/drivers
parente6d2ad1ce7f72ffb3adc5530774ece6332950db1 (diff)
downloadupstream-81b5773b7fe6eeade8c7b7f70bdc7825e3ff4353.tar.gz
upstream-81b5773b7fe6eeade8c7b7f70bdc7825e3ff4353.tar.bz2
upstream-81b5773b7fe6eeade8c7b7f70bdc7825e3ff4353.zip
[ar71xx] ag71xx driver: add Kconfig option for enabling debug messages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14517 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig7
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig b/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig
index 8105744e82..18be11593c 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig
@@ -5,3 +5,10 @@ config AG71XX
help
If you wish to compile a kernel for AR71xx/91xx and enable
ethernet support, then you should always answer Y to this.
+
+config AG71XX_DEBUG
+ bool "Atheros AR71xx built-in ethernet driver debugging"
+ depends on AG71XX
+ default n
+ help
+ Atheros AR71xx built-in ethernet driver debugging messages.
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index f1c8491242..3dbb453fc5 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -63,8 +63,7 @@
#define AG71XX_RX_RING_SIZE 128
-#undef AG71XX_DEBUG
-#ifdef AG71XX_DEBUG
+#ifdef CONFIG_AG71XX_DEBUG
#define DBG(fmt, args...) printk(KERN_DEBUG fmt, ## args)
#else
#define DBG(fmt, args...) do {} while (0)