summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-12 19:47:21 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-12 19:47:21 +0200
commit13fd71450abf7f4ac2d6b1d6c2c70b81b0796f80 (patch)
tree54823952948c5a5eb250e0f45356b39fc3761d29 /audio
parent7dfdd472eed6368bbae14aa989e712a49f3e7f12 (diff)
Use correct dev pointer
Diffstat (limited to 'audio')
-rw-r--r--audio/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 472347b1..294155ad 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -317,7 +317,7 @@ static void headset_resume_complete(struct audio_device *dev, void *user_data)
client->data_fd = headset_get_sco_fd(dev);
if (client->data_fd < 0) {
error("Unable to get a SCO fd");
- headset_unlock(client->dev, hs->lock);
+ headset_unlock(dev, hs->lock);
goto failed;
}