diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2009-03-29 19:19:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:30 -0400 |
commit | ff1a3ebb9cd9baecd167500c660bd76129b67b1c (patch) | |
tree | 446537820a4b8e10469276c8f394c2d8a4e42567 /drivers/media | |
parent | 65d9ff9c85d3c2e06d22aed78efee8404563eff6 (diff) |
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: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/radio/radio-aimslab.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-aztech.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-gemtek-pci.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-gemtek.c | 11 | ||||
-rw-r--r-- | drivers/media/radio/radio-maestro.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-rtrack2.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-sf16fmi.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-terratec.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-trust.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-typhoon.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-zoltrix.c | 12 |
13 files changed, 0 insertions, 155 deletions
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index ac82e33cb6fc..35edee009ba8 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -355,20 +355,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
355 | return a->index ? -EINVAL : 0; | 355 | return a->index ? -EINVAL : 0; |
356 | } | 356 | } |
357 | 357 | ||
358 | static int rtrack_open(struct file *file) | ||
359 | { | ||
360 | return 0; | ||
361 | } | ||
362 | |||
363 | static int rtrack_release(struct file *file) | ||
364 | { | ||
365 | return 0; | ||
366 | } | ||
367 | |||
368 | static const struct v4l2_file_operations rtrack_fops = { | 358 | static const struct v4l2_file_operations rtrack_fops = { |
369 | .owner = THIS_MODULE, | 359 | .owner = THIS_MODULE, |
370 | .open = rtrack_open, | ||
371 | .release = rtrack_release, | ||
372 | .ioctl = video_ioctl2, | 360 | .ioctl = video_ioctl2, |
373 | }; | 361 | }; |
374 | 362 | ||
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index 49299f7fd834..8daf809eb01a 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c | |||
@@ -318,20 +318,8 @@ static int vidioc_s_ctrl(struct file *file, void *priv, | |||
318 | return -EINVAL; | 318 | return -EINVAL; |
319 | } | 319 | } |
320 | 320 | ||
321 | static int aztech_open(struct file *file) | ||
322 | { | ||
323 | return 0; | ||
324 | } | ||
325 | |||
326 | static int aztech_release(struct file *file) | ||
327 | { | ||
328 | return 0; | ||
329 | } | ||
330 | |||
331 | static const struct v4l2_file_operations aztech_fops = { | 321 | static const struct v4l2_file_operations aztech_fops = { |
332 | .owner = THIS_MODULE, | 322 | .owner = THIS_MODULE, |
333 | .open = aztech_open, | ||
334 | .release = aztech_release, | ||
335 | .ioctl = video_ioctl2, | 323 | .ioctl = video_ioctl2, |
336 | }; | 324 | }; |
337 | 325 | ||
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c index 09265d25725e..c3f579de6e71 100644 --- a/drivers/media/radio/radio-gemtek-pci.c +++ b/drivers/media/radio/radio-gemtek-pci.c | |||
@@ -356,20 +356,8 @@ static struct pci_device_id gemtek_pci_id[] = | |||
356 | 356 | ||
357 | MODULE_DEVICE_TABLE(pci, gemtek_pci_id); | 357 | MODULE_DEVICE_TABLE(pci, gemtek_pci_id); |
358 | 358 | ||
359 | static int gemtek_pci_open(struct file *file) | ||
360 | { | ||
361 | return 0; | ||
362 | } | ||
363 | |||
364 | static int gemtek_pci_release(struct file *file) | ||
365 | { | ||
366 | return 0; | ||
367 | } | ||
368 | |||
369 | static const struct v4l2_file_operations gemtek_pci_fops = { | 359 | static const struct v4l2_file_operations gemtek_pci_fops = { |
370 | .owner = THIS_MODULE, | 360 | .owner = THIS_MODULE, |
371 | .open = gemtek_pci_open, | ||
372 | .release = gemtek_pci_release, | ||
373 | .ioctl = video_ioctl2, | 361 | .ioctl = video_ioctl2, |
374 | }; | 362 | }; |
375 | 363 | ||
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c index 150464426d1d..73985f641f07 100644 --- a/drivers/media/radio/radio-gemtek.c +++ b/drivers/media/radio/radio-gemtek.c | |||
@@ -375,20 +375,9 @@ static int gemtek_probe(struct gemtek *gt) | |||
375 | /* | 375 | /* |
376 | * Video 4 Linux stuff. | 376 | * Video 4 Linux stuff. |
377 | */ | 377 | */ |
378 | static int gemtek_open(struct file *file) | ||
379 | { | ||
380 | return 0; | ||
381 | } | ||
382 | |||
383 | static int gemtek_release(struct file *file) | ||
384 | { | ||
385 | return 0; | ||
386 | } | ||
387 | 378 | ||
388 | static const struct v4l2_file_operations gemtek_fops = { | 379 | static const struct v4l2_file_operations gemtek_fops = { |
389 | .owner = THIS_MODULE, | 380 | .owner = THIS_MODULE, |
390 | .open = gemtek_open, | ||
391 | .release = gemtek_release, | ||
392 | .ioctl = video_ioctl2, | 381 | .ioctl = video_ioctl2, |
393 | }; | 382 | }; |
394 | 383 | ||
diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c index 01a6d22950ad..64d737c35acf 100644 --- a/drivers/media/radio/radio-maestro.c +++ b/drivers/media/radio/radio-maestro.c | |||
@@ -292,20 +292,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
292 | return a->index ? -EINVAL : 0; | 292 | return a->index ? -EINVAL : 0; |
293 | } | 293 | } |
294 | 294 | ||
295 | static int maestro_open(struct file *file) | ||
296 | { | ||
297 | return 0; | ||
298 | } | ||
299 | |||
300 | static int maestro_release(struct file *file) | ||
301 | { | ||
302 | return 0; | ||
303 | } | ||
304 | |||
305 | static const struct v4l2_file_operations maestro_fops = { | 295 | static const struct v4l2_file_operations maestro_fops = { |
306 | .owner = THIS_MODULE, | 296 | .owner = THIS_MODULE, |
307 | .open = maestro_open, | ||
308 | .release = maestro_release, | ||
309 | .ioctl = video_ioctl2, | 297 | .ioctl = video_ioctl2, |
310 | }; | 298 | }; |
311 | 299 | ||
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 2606f0b30355..3da51fe8fb93 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -339,20 +339,8 @@ static int vidioc_s_ctrl(struct file *file, void *priv, | |||
339 | return -EINVAL; | 339 | return -EINVAL; |
340 | } | 340 | } |
341 | 341 | ||
342 | static int maxiradio_open(struct file *file) | ||
343 | { | ||
344 | return 0; | ||
345 | } | ||
346 | |||
347 | static int maxiradio_release(struct file *file) | ||
348 | { | ||
349 | return 0; | ||
350 | } | ||
351 | |||
352 | static const struct v4l2_file_operations maxiradio_fops = { | 342 | static const struct v4l2_file_operations maxiradio_fops = { |
353 | .owner = THIS_MODULE, | 343 | .owner = THIS_MODULE, |
354 | .open = maxiradio_open, | ||
355 | .release = maxiradio_release, | ||
356 | .ioctl = video_ioctl2, | 344 | .ioctl = video_ioctl2, |
357 | }; | 345 | }; |
358 | 346 | ||
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index d1e6b01d4eca..9cb193fa6e33 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c | |||
@@ -260,20 +260,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
260 | return a->index ? -EINVAL : 0; | 260 | return a->index ? -EINVAL : 0; |
261 | } | 261 | } |
262 | 262 | ||
263 | static int rtrack2_open(struct file *file) | ||
264 | { | ||
265 | return 0; | ||
266 | } | ||
267 | |||
268 | static int rtrack2_release(struct file *file) | ||
269 | { | ||
270 | return 0; | ||
271 | } | ||
272 | |||
273 | static const struct v4l2_file_operations rtrack2_fops = { | 263 | static const struct v4l2_file_operations rtrack2_fops = { |
274 | .owner = THIS_MODULE, | 264 | .owner = THIS_MODULE, |
275 | .open = rtrack2_open, | ||
276 | .release = rtrack2_release, | ||
277 | .ioctl = video_ioctl2, | 265 | .ioctl = video_ioctl2, |
278 | }; | 266 | }; |
279 | 267 | ||
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c index f4784f0d1a88..1dba8f0832a0 100644 --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c | |||
@@ -260,20 +260,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
260 | return a->index ? -EINVAL : 0; | 260 | return a->index ? -EINVAL : 0; |
261 | } | 261 | } |
262 | 262 | ||
263 | static int fmi_open(struct file *file) | ||
264 | { | ||
265 | return 0; | ||
266 | } | ||
267 | |||
268 | static int fmi_release(struct file *file) | ||
269 | { | ||
270 | return 0; | ||
271 | } | ||
272 | |||
273 | static const struct v4l2_file_operations fmi_fops = { | 263 | static const struct v4l2_file_operations fmi_fops = { |
274 | .owner = THIS_MODULE, | 264 | .owner = THIS_MODULE, |
275 | .open = fmi_open, | ||
276 | .release = fmi_release, | ||
277 | .ioctl = video_ioctl2, | 265 | .ioctl = video_ioctl2, |
278 | }; | 266 | }; |
279 | 267 | ||
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 0ba9d88a80fc..c09ca8600ea1 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -377,20 +377,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
377 | return a->index ? -EINVAL : 0; | 377 | return a->index ? -EINVAL : 0; |
378 | } | 378 | } |
379 | 379 | ||
380 | static int fmr2_open(struct file *file) | ||
381 | { | ||
382 | return 0; | ||
383 | } | ||
384 | |||
385 | static int fmr2_release(struct file *file) | ||
386 | { | ||
387 | return 0; | ||
388 | } | ||
389 | |||
390 | static const struct v4l2_file_operations fmr2_fops = { | 380 | static const struct v4l2_file_operations fmr2_fops = { |
391 | .owner = THIS_MODULE, | 381 | .owner = THIS_MODULE, |
392 | .open = fmr2_open, | ||
393 | .release = fmr2_release, | ||
394 | .ioctl = video_ioctl2, | 382 | .ioctl = video_ioctl2, |
395 | }; | 383 | }; |
396 | 384 | ||
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c index 5b007f5c74b2..699db9acaaf7 100644 --- a/drivers/media/radio/radio-terratec.c +++ b/drivers/media/radio/radio-terratec.c | |||
@@ -332,20 +332,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
332 | return a->index ? -EINVAL : 0; | 332 | return a->index ? -EINVAL : 0; |
333 | } | 333 | } |
334 | 334 | ||
335 | static int terratec_open(struct file *file) | ||
336 | { | ||
337 | return 0; | ||
338 | } | ||
339 | |||
340 | static int terratec_release(struct file *file) | ||
341 | { | ||
342 | return 0; | ||
343 | } | ||
344 | |||
345 | static const struct v4l2_file_operations terratec_fops = { | 335 | static const struct v4l2_file_operations terratec_fops = { |
346 | .owner = THIS_MODULE, | 336 | .owner = THIS_MODULE, |
347 | .open = terratec_open, | ||
348 | .release = terratec_release, | ||
349 | .ioctl = video_ioctl2, | 337 | .ioctl = video_ioctl2, |
350 | }; | 338 | }; |
351 | 339 | ||
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c index d1be6492a07b..6f9ecc359356 100644 --- a/drivers/media/radio/radio-trust.c +++ b/drivers/media/radio/radio-trust.c | |||
@@ -338,20 +338,8 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
338 | return a->index ? -EINVAL : 0; | 338 | return a->index ? -EINVAL : 0; |
339 | } | 339 | } |
340 | 340 | ||
341 | static int trust_open(struct file *file) | ||
342 | { | ||
343 | return 0; | ||
344 | } | ||
345 | |||
346 | static int trust_release(struct file *file) | ||
347 | { | ||
348 | return 0; | ||
349 | } | ||
350 | |||
351 | static const struct v4l2_file_operations trust_fops = { | 341 | static const struct v4l2_file_operations trust_fops = { |
352 | .owner = THIS_MODULE, | 342 | .owner = THIS_MODULE, |
353 | .open = trust_open, | ||
354 | .release = trust_release, | ||
355 | .ioctl = video_ioctl2, | 343 | .ioctl = video_ioctl2, |
356 | }; | 344 | }; |
357 | 345 | ||
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c index 92d923c7f360..3a98f1399495 100644 --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c | |||
@@ -314,20 +314,8 @@ static int vidioc_log_status(struct file *file, void *priv) | |||
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | 316 | ||
317 | static int typhoon_open(struct file *file) | ||
318 | { | ||
319 | return 0; | ||
320 | } | ||
321 | |||
322 | static int typhoon_release(struct file *file) | ||
323 | { | ||
324 | return 0; | ||
325 | } | ||
326 | |||
327 | static const struct v4l2_file_operations typhoon_fops = { | 317 | static const struct v4l2_file_operations typhoon_fops = { |
328 | .owner = THIS_MODULE, | 318 | .owner = THIS_MODULE, |
329 | .open = typhoon_open, | ||
330 | .release = typhoon_release, | ||
331 | .ioctl = video_ioctl2, | 319 | .ioctl = video_ioctl2, |
332 | }; | 320 | }; |
333 | 321 | ||
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 1f85f2024dc0..80e98b6422fe 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c | |||
@@ -370,21 +370,9 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
370 | return a->index ? -EINVAL : 0; | 370 | return a->index ? -EINVAL : 0; |
371 | } | 371 | } |
372 | 372 | ||
373 | static int zoltrix_open(struct file *file) | ||
374 | { | ||
375 | return 0; | ||
376 | } | ||
377 | |||
378 | static int zoltrix_release(struct file *file) | ||
379 | { | ||
380 | return 0; | ||
381 | } | ||
382 | |||
383 | static const struct v4l2_file_operations zoltrix_fops = | 373 | static const struct v4l2_file_operations zoltrix_fops = |
384 | { | 374 | { |
385 | .owner = THIS_MODULE, | 375 | .owner = THIS_MODULE, |
386 | .open = zoltrix_open, | ||
387 | .release = zoltrix_release, | ||
388 | .ioctl = video_ioctl2, | 376 | .ioctl = video_ioctl2, |
389 | }; | 377 | }; |
390 | 378 | ||