diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-08-03 14:52:48 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-08-03 14:52:48 +0000 |
commit | 825e50fcbf7283e1b6a6429c180b2ed1ba1f528f (patch) | |
tree | 65a56001558fb0f0e5392452f8c392a80dc027cb | |
parent | 6a3e97ec0497cae423b3c65839dfee4ec2267d42 (diff) |
Use the wrapper CLASS_DEV_DESTROY rather than class_device_destroy
explicitly. Should help with kernels < 2.6.13 and kernels >= 2.6.26 .
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4448 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | zaptel-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zaptel-base.c b/zaptel-base.c index fb5a52e..f06ee9a 100644 --- a/zaptel-base.c +++ b/zaptel-base.c @@ -4616,7 +4616,7 @@ int zt_unregister(struct zt_span *span) #ifdef CONFIG_ZAP_UDEV for (x = 0; x < span->channels; x++) { - class_device_destroy(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo)); + CLASS_DEV_DESTROY(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo)); } #endif /* CONFIG_ZAP_UDEV */ |