dahdi: Unregister dahdi_device from sysfs if we fail to auto assign spans.
authorShaun Ruffell <sruffell@digium.com>
Mon, 7 Nov 2011 22:40:15 +0000 (22:40 +0000)
committerShaun Ruffell <sruffell@digium.com>
Mon, 7 Nov 2011 22:40:15 +0000 (22:40 +0000)
commit4b585245657b1924b89fdc28e92e3891d2512489
tree7e620dedee58ed35969959a2af50d1fc55798b66
parent6ed54cc7e3f35e33adff1f8bbba801e01f46a67b
dahdi: Unregister dahdi_device from sysfs if we fail to auto assign spans.

Otherwise, if the _dahdi_assign_span call fails, the dahdi_device will never
be removed from the dahdi_devices virtual bus and the board drivers will not
be reloadable.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10331 a0bf4364-ded3-4de4-8d8a-66a801d63aff
drivers/dahdi/dahdi-base.c