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

Commit ff1a3ebb authored by Alexey Klimov's avatar Alexey Klimov Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (11391): pci-isa radios: remove open and release functions



Patch removes empty open and release functions in pci and isa radio
drivers, setting them to NULL. V4L module doesn't call for them due to
previous patch.

Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 65d9ff9c
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -355,20 +355,8 @@ static int vidioc_s_audio(struct file *file, void *priv,
	return a->index ? -EINVAL : 0;
}

static int rtrack_open(struct file *file)
{
	return 0;
}

static int rtrack_release(struct file *file)
{
	return 0;
}

static const struct v4l2_file_operations rtrack_fops = {
	.owner		= THIS_MODULE,
	.open           = rtrack_open,
	.release        = rtrack_release,
	.ioctl		= video_ioctl2,
};

+0 −12
Original line number Diff line number Diff line
@@ -318,20 +318,8 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
	return -EINVAL;
}

static int aztech_open(struct file *file)
{
	return 0;
}

static int aztech_release(struct file *file)
{
	return 0;
}

static const struct v4l2_file_operations aztech_fops = {
	.owner		= THIS_MODULE,
	.open           = aztech_open,
	.release        = aztech_release,
	.ioctl		= video_ioctl2,
};

+0 −12
Original line number Diff line number Diff line
@@ -356,20 +356,8 @@ static struct pci_device_id gemtek_pci_id[] =

MODULE_DEVICE_TABLE(pci, gemtek_pci_id);

static int gemtek_pci_open(struct file *file)
{
	return 0;
}

static int gemtek_pci_release(struct file *file)
{
	return 0;
}

static const struct v4l2_file_operations gemtek_pci_fops = {
	.owner		= THIS_MODULE,
	.open           = gemtek_pci_open,
	.release        = gemtek_pci_release,
	.ioctl		= video_ioctl2,
};

+0 −11
Original line number Diff line number Diff line
@@ -375,20 +375,9 @@ static int gemtek_probe(struct gemtek *gt)
/*
 * Video 4 Linux stuff.
 */
static int gemtek_open(struct file *file)
{
	return 0;
}

static int gemtek_release(struct file *file)
{
	return 0;
}

static const struct v4l2_file_operations gemtek_fops = {
	.owner		= THIS_MODULE,
	.open		= gemtek_open,
	.release	= gemtek_release,
	.ioctl		= video_ioctl2,
};

+0 −12
Original line number Diff line number Diff line
@@ -292,20 +292,8 @@ static int vidioc_s_audio(struct file *file, void *priv,
	return a->index ? -EINVAL : 0;
}

static int maestro_open(struct file *file)
{
	return 0;
}

static int maestro_release(struct file *file)
{
	return 0;
}

static const struct v4l2_file_operations maestro_fops = {
	.owner		= THIS_MODULE,
	.open           = maestro_open,
	.release        = maestro_release,
	.ioctl		= video_ioctl2,
};

Loading