mirror of git://git.sysmocom.de/ofono
handsfree-audio: Don't register if no defer_setup
If the kernel doesn't support defer_setup for SCO, we shouldn't allow cards to be registered, because in that case we won't be able to properly send the file descriptor to the Agent.
This commit is contained in:
parent
e84bd27b99
commit
6d08a47ec3
|
@ -816,6 +816,9 @@ int ofono_handsfree_card_driver_register(
|
|||
{
|
||||
DBG("driver: %p", d);
|
||||
|
||||
if (defer_setup == 0)
|
||||
return -ENOSYS;
|
||||
|
||||
if (d->probe == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue