summaryrefslogtreecommitdiff
path: root/include/dahdi
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
commitbb0daa7e482f7f32e2e45a880ce9f7ae0fb72f8b (patch)
tree87becbe61c955a8cf3cbe534cd341ecca75b3e5a /include/dahdi
parentf5a515f094c00fe4ecc85aa2dabccd6887657bd6 (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/dahdi')
-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 */