diff options
Diffstat (limited to 'drivers/media/video/soc_camera.c')
-rw-r--r-- | drivers/media/video/soc_camera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 21a8aa586da5..d9ccc2866592 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c | |||
@@ -797,7 +797,7 @@ static int soc_camera_s_crop(struct file *file, void *fh, | |||
797 | rect.top = icd->rect_max.height + icd->rect_max.top - | 797 | rect.top = icd->rect_max.height + icd->rect_max.top - |
798 | rect.height; | 798 | rect.height; |
799 | 799 | ||
800 | ret = ici->ops->set_crop(icd, &rect); | 800 | ret = ici->ops->set_crop(icd, a); |
801 | if (!ret) | 801 | if (!ret) |
802 | icd->rect_current = rect; | 802 | icd->rect_current = rect; |
803 | 803 | ||
@@ -970,7 +970,7 @@ static int soc_camera_probe(struct device *dev) | |||
970 | 970 | ||
971 | /* FIXME: this is racy, have to use driver-binding notification */ | 971 | /* FIXME: this is racy, have to use driver-binding notification */ |
972 | control = to_soc_camera_control(icd); | 972 | control = to_soc_camera_control(icd); |
973 | if (!control || !control->driver || | 973 | if (!control || !control->driver || !dev_get_drvdata(control) || |
974 | !try_module_get(control->driver->owner)) { | 974 | !try_module_get(control->driver->owner)) { |
975 | icl->del_device(icl); | 975 | icl->del_device(icl); |
976 | goto enodrv; | 976 | goto enodrv; |