Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6042e8a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASOC : Remove .flush function of voice SVC driver"

parents ee927800 904dd55b
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -504,7 +504,7 @@ static int voice_svc_open(struct inode *inode, struct file *file)
	return 0;
}

static int voice_svc_flush(struct file *file, fl_owner_t id)
static int voice_svc_release(struct inode *inode, struct file *file)
{
	int ret = 0;
	struct apr_response_list *resp = NULL;
@@ -553,18 +553,11 @@ static int voice_svc_flush(struct file *file, fl_owner_t id)

	spin_unlock_irqrestore(&prtd->response_lock, spin_flags);

done:
	return ret;
}

static int voice_svc_release(struct inode *inode, struct file *file)
{
	pr_debug("%s\n", __func__);

	kfree(file->private_data);
	file->private_data = NULL;

	return 0;
done:
	return ret;
}

static const struct file_operations voice_svc_fops = {
@@ -572,7 +565,6 @@ static const struct file_operations voice_svc_fops = {
	.open =                 voice_svc_open,
	.read =                 voice_svc_read,
	.write =                voice_svc_write,
	.flush =                voice_svc_flush,
	.release =              voice_svc_release,
};