diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-24 13:21:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-24 13:21:51 -0400 |
commit | ab11ca34eea8fda7a1a9302d86f6ef6108ffd68f (patch) | |
tree | 987ec6c263f3dfa4a7a6f9ce4d5ece47cbc12e29 /drivers/media/rc/nuvoton-cir.c | |
parent | f9369910a6225b8d4892c3f20ae740a711cd5ace (diff) | |
parent | 71006fb22b0f5a2045605b3887ee99a0e9adafe4 (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media updates from Mauro Carvalho Chehab:
- some V4L2 API updates needed by embedded devices
- DVB API extensions for ATSC-MH delivery system, used in US for mobile
TV
- new tuners for fc0011/0012/0013 and tua9001
- a new dvb driver for af9033/9035
- a new ATSC-MH frontend (lg2160)
- new remote controller keymaps
- Removal of a few legacy webcam driver that got replaced by gspca on
several kernel versions ago
- a new driver for Exynos 4/5 webcams(s5pp fimc-lite)
- a new webcam sensor driver (smiapp)
- a new video input driver for embedded (sta2x1xx)
- several improvements, fixes, cleanups, etc inside the drivers.
Manually fix up conflicts due to err() -> dev_err() conversion in
drivers/staging/media/easycap/easycap_main.c
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (484 commits)
[media] saa7134-cards: Remove a PCI entry added by mistake
[media] radio-sf16fmi: add support for SF16-FMD
[media] rc-loopback: remove duplicate line
[media] patch for Asus My Cinema PS3-100 (1043:48cd)
[media] au0828: Move the Kconfig knob under V4L_USB_DRIVERS
[media] em28xx: simple comment fix
[media] [resend] radio-sf16fmr2: add PnP support for SF16-FMD2
[media] smiapp: Use v4l2_ctrl_new_int_menu() instead of v4l2_ctrl_new_custom()
[media] smiapp: Add support for 8-bit uncompressed formats
[media] smiapp: Allow generic quirk registers
[media] smiapp: Use non-binning limits if the binning limit is zero
[media] smiapp: Initialise rval in smiapp_read_nvm()
[media] smiapp: Round minimum pre_pll up rather than down in ip_clk_freq check
[media] smiapp: Use 8-bit reads only before identifying the sensor
[media] smiapp: Quirk for sensors that only do 8-bit reads
[media] smiapp: Pass struct sensor to register writing commands instead of i2c_client
[media] smiapp: Allow using external clock from the clock framework
[media] zl10353: change .read_snr() to report SNR as a 0.1 dB
[media] media: add support to gspca/pac7302.c for 093a:2627 (Genius FaceCam 300)
[media] m88rs2000 - only flip bit 2 on reg 0x70 on 16th try
...
Diffstat (limited to 'drivers/media/rc/nuvoton-cir.c')
-rw-r--r-- | drivers/media/rc/nuvoton-cir.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 8b2c071ac0ab..dc8a7dddccd4 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c | |||
@@ -1075,19 +1075,19 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) | |||
1075 | 1075 | ||
1076 | if (request_irq(nvt->cir_irq, nvt_cir_isr, IRQF_SHARED, | 1076 | if (request_irq(nvt->cir_irq, nvt_cir_isr, IRQF_SHARED, |
1077 | NVT_DRIVER_NAME, (void *)nvt)) | 1077 | NVT_DRIVER_NAME, (void *)nvt)) |
1078 | goto failure; | 1078 | goto failure2; |
1079 | 1079 | ||
1080 | if (!request_region(nvt->cir_wake_addr, | 1080 | if (!request_region(nvt->cir_wake_addr, |
1081 | CIR_IOREG_LENGTH, NVT_DRIVER_NAME)) | 1081 | CIR_IOREG_LENGTH, NVT_DRIVER_NAME)) |
1082 | goto failure; | 1082 | goto failure3; |
1083 | 1083 | ||
1084 | if (request_irq(nvt->cir_wake_irq, nvt_cir_wake_isr, IRQF_SHARED, | 1084 | if (request_irq(nvt->cir_wake_irq, nvt_cir_wake_isr, IRQF_SHARED, |
1085 | NVT_DRIVER_NAME, (void *)nvt)) | 1085 | NVT_DRIVER_NAME, (void *)nvt)) |
1086 | goto failure; | 1086 | goto failure4; |
1087 | 1087 | ||
1088 | ret = rc_register_device(rdev); | 1088 | ret = rc_register_device(rdev); |
1089 | if (ret) | 1089 | if (ret) |
1090 | goto failure; | 1090 | goto failure5; |
1091 | 1091 | ||
1092 | device_init_wakeup(&pdev->dev, true); | 1092 | device_init_wakeup(&pdev->dev, true); |
1093 | nvt->rdev = rdev; | 1093 | nvt->rdev = rdev; |
@@ -1099,17 +1099,15 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) | |||
1099 | 1099 | ||
1100 | return 0; | 1100 | return 0; |
1101 | 1101 | ||
1102 | failure5: | ||
1103 | free_irq(nvt->cir_wake_irq, nvt); | ||
1104 | failure4: | ||
1105 | release_region(nvt->cir_wake_addr, CIR_IOREG_LENGTH); | ||
1106 | failure3: | ||
1107 | free_irq(nvt->cir_irq, nvt); | ||
1108 | failure2: | ||
1109 | release_region(nvt->cir_addr, CIR_IOREG_LENGTH); | ||
1102 | failure: | 1110 | failure: |
1103 | if (nvt->cir_irq) | ||
1104 | free_irq(nvt->cir_irq, nvt); | ||
1105 | if (nvt->cir_addr) | ||
1106 | release_region(nvt->cir_addr, CIR_IOREG_LENGTH); | ||
1107 | |||
1108 | if (nvt->cir_wake_irq) | ||
1109 | free_irq(nvt->cir_wake_irq, nvt); | ||
1110 | if (nvt->cir_wake_addr) | ||
1111 | release_region(nvt->cir_wake_addr, CIR_IOREG_LENGTH); | ||
1112 | |||
1113 | rc_free_device(rdev); | 1111 | rc_free_device(rdev); |
1114 | kfree(nvt); | 1112 | kfree(nvt); |
1115 | 1113 | ||