summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-12-11 21:46:09 +0000
committerShaun Ruffell <sruffell@digium.com>2008-12-11 21:46:09 +0000
commitdcebc3f765f6910ffb458e78748954893487ceef (patch)
tree87becbe61c955a8cf3cbe534cd341ecca75b3e5a /include
parent362b22faf75c217cd9cdaf1f851b28c1c4cf5286 (diff)
Add definition of dev_notice for kernels < 2.6.17.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5509 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index d7678fe..738cb0f 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -78,6 +78,13 @@
#define DAHDI_IRQ_SHARED_DISABLED SA_SHIRQ | SA_INTERRUPT
#endif
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,16)
+#ifndef dev_notice
+#define dev_notice(dev, format, arg...) \
+ dev_printk(KERN_NOTICE , dev , format , ## arg)
+#endif
+#endif
+
/*! Default chunk size for conferences and such -- static right now, might make
variable sometime. 8 samples = 1 ms = most frequent service interval possible
for a USB device */