diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-08-31 21:43:39 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-08-31 21:43:39 +0000 |
commit | ebf8bded3f539c61a5a99e1d43214d1b0228396a (patch) | |
tree | 57c7fc03b8e5944ad45319c09e0495dfd87d293c /ztdummy.c | |
parent | 3e06aadaa9965a951c0b0e322655f3ecd46be8e1 (diff) |
make spinlock definitions compatible with -RT kernel patches (and future kernel syntax) (issue #5080)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@752 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztdummy.c')
-rwxr-xr-x | ztdummy.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -152,7 +152,11 @@ int init_module(void) { #ifndef LINUX26 int irq; +#ifdef DEFINE_SPINLOCK + DEFINE_SPINLOCK(mylock); +#else spinlock_t mylock = SPIN_LOCK_UNLOCKED; +#endif if (uhci_devices==NULL){ printk ("ztdummy: Uhci_devices pointer error.\n"); |