diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-24 20:35:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-24 20:35:10 -0500 |
commit | 21fbd5809ad126b949206d78e0a0e07ec872ea11 (patch) | |
tree | a824045df99fc1f0690095a925cceb50207e332b /drivers/media/i2c/tvp514x.c | |
parent | d9978ec5680059d727b39d6c706777c6973587f2 (diff) | |
parent | ed72d37a33fdf43dc47787fe220532cdec9da528 (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 cleanups at V4L2 documentation
- new drivers: ts2020 frontend, ov9650 sensor, s5c73m3 sensor,
sh-mobile veu mem2mem driver, radio-ma901, davinci_vpfe staging
driver
- Lots of missing MAINTAINERS entries added
- several em28xx driver improvements, including its conversion to
videobuf2
- several fixups on drivers to make them to better comply with the API
- DVB core: add support for DVBv5 stats, allowing the implementation of
statistics for new standards like ISDB
- mb86a20s: add statistics to the driver
- lots of new board additions, cleanups, and driver improvements.
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (596 commits)
[media] media: Add 0x3009 USB PID to ttusb2 driver (fixed diff)
[media] rtl28xxu: Add USB IDs for Compro VideoMate U620F
[media] em28xx: add usb id for terratec h5 rev. 3
[media] media: rc: gpio-ir-recv: add support for device tree parsing
[media] mceusb: move check earlier to make smatch happy
[media] radio-si470x doc: add info about v4l2-ctl and sox+alsa
[media] staging: media: Remove unnecessary OOM messages
[media] sh_vou: Use vou_dev instead of vou_file wherever possible
[media] sh_vou: Use video_drvdata()
[media] drivers/media/platform/soc_camera/pxa_camera.c: use devm_ functions
[media] mt9t112: mt9t111 format set up differs from mt9t112
[media] sh-mobile-ceu-camera: fix SHARPNESS control default
Revert "[media] fc0011: Return early, if the frequency is already tuned"
[media] cx18/ivtv: fix regression: remove __init from a non-init function
[media] em28xx: fix analog streaming with USB bulk transfers
[media] stv0900: remove unnecessary null pointer check
[media] fc0011: Return early, if the frequency is already tuned
[media] fc0011: Add some sanity checks and cleanups
[media] fc0011: Fix xin value clamping
Revert "[media] [PATH,1/2] mxl5007 move reset to attach"
...
Diffstat (limited to 'drivers/media/i2c/tvp514x.c')
-rw-r--r-- | drivers/media/i2c/tvp514x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index d5e10215a28f..aa94ebc2d755 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/media/i2c/tvp514x.c | |||
@@ -951,7 +951,7 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
951 | return -ENODEV; | 951 | return -ENODEV; |
952 | } | 952 | } |
953 | 953 | ||
954 | decoder = kzalloc(sizeof(*decoder), GFP_KERNEL); | 954 | decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); |
955 | if (!decoder) | 955 | if (!decoder) |
956 | return -ENOMEM; | 956 | return -ENOMEM; |
957 | 957 | ||
@@ -998,7 +998,6 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
998 | int err = decoder->hdl.error; | 998 | int err = decoder->hdl.error; |
999 | 999 | ||
1000 | v4l2_ctrl_handler_free(&decoder->hdl); | 1000 | v4l2_ctrl_handler_free(&decoder->hdl); |
1001 | kfree(decoder); | ||
1002 | return err; | 1001 | return err; |
1003 | } | 1002 | } |
1004 | v4l2_ctrl_handler_setup(&decoder->hdl); | 1003 | v4l2_ctrl_handler_setup(&decoder->hdl); |
@@ -1023,7 +1022,6 @@ static int tvp514x_remove(struct i2c_client *client) | |||
1023 | 1022 | ||
1024 | v4l2_device_unregister_subdev(sd); | 1023 | v4l2_device_unregister_subdev(sd); |
1025 | v4l2_ctrl_handler_free(&decoder->hdl); | 1024 | v4l2_ctrl_handler_free(&decoder->hdl); |
1026 | kfree(decoder); | ||
1027 | return 0; | 1025 | return 0; |
1028 | } | 1026 | } |
1029 | /* TVP5146 Init/Power on Sequence */ | 1027 | /* TVP5146 Init/Power on Sequence */ |