diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-12-14 19:02:48 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-12-14 19:02:48 +0000 |
commit | e36b34aa8ce6de4e37dbfb020e7fe9d5ce068bb7 (patch) | |
tree | 6a8bbbaca62cd5e4c8570e376bed5955d2908361 /drivers/dahdi | |
parent | 1db4a8a4f7036b2ad31f1761ee5f25123e879259 (diff) |
dahdi: Return dahdi_span_ops.startup callback errors to userspace.
Allows dahdi_cfg to return an error code if a board driver fails it's startup
call for any reason.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10379 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 68ddfc8..453b782 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -4877,7 +4877,7 @@ static int dahdi_ioctl_startup(struct file *file, unsigned long data) __dahdi_find_master_span(); } put_span(s); - return 0; + return res; } static int dahdi_ioctl_shutdown(unsigned long data) |