dahdi_dynamic_eth: Fix compilation on kernels < 2.6.22.
authorShaun Ruffell <sruffell@digium.com>
Thu, 22 Mar 2012 18:36:06 +0000 (18:36 +0000)
committerShaun Ruffell <sruffell@digium.com>
Thu, 22 Mar 2012 18:36:06 +0000 (18:36 +0000)
commitbad3860f24cae84ae0d2c85b0055f7a5d4d7c919
tree3dfdd67870cf4eb1d9f59722c9ce3e72511eb54d
parent5fcf13fdef5bd7ee835aad1f4dbb5e2aef69aa3e
dahdi_dynamic_eth: Fix compilation on kernels < 2.6.22.

Resolves the follwing build error:
  drivers/dahdi/dahdi_dynamic_eth.c: In function ‘ztdeth_exit’:
  drivers/dahdi/dahdi_dynamic_eth.c:448: error: implicit declaration of function ‘cancel_work_sync’

RHEL kernel versions 2.6.18-238 (5.6) and greater had cancel_work_sync()
backported which is what I did my original smoke test on.

Reported-by: Oron Peled <oron.peled@xorcom.com>
Signed-off-by: Shaun Ruffell <sruffell@digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10588

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10592 a0bf4364-ded3-4de4-8d8a-66a801d63aff
drivers/dahdi/dahdi_dynamic_eth.c