diff options
Diffstat (limited to 'zaptel-base.c')
-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 */ |