Skip to content

Commit 9a84823

Browse files
author
Hans Verkuil
committed
Merge tag 'media-fixes-unicam-20240510' of https://git.kernel.org/pub/scm/linux/kernel/git/pinchartl/linux into media_stage
bcm2835-unicam fixes for v6.10 Signed-off-by: Hans Verkuil <[email protected]> From: Laurent Pinchart <[email protected]> Link: https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/
2 parents 48259b9 + 33108ab commit 9a84823

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4039,7 +4039,7 @@ M: Raspberry Pi Kernel Maintenance <[email protected]>
40394039
40404040
S: Maintained
40414041
F: Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml
4042-
F: drivers/media/platform/bcm2835/
4042+
F: drivers/media/platform/broadcom/bcm2835-unicam*
40434043

40444044
BROADCOM BCM47XX MIPS ARCHITECTURE
40454045
M: Hauke Mehrtens <[email protected]>

drivers/media/platform/broadcom/bcm2835-unicam.c

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,9 +2433,9 @@ static int unicam_async_bound(struct v4l2_async_notifier *notifier,
24332433
return ret;
24342434

24352435
source = media_pad_remote_pad_unique(sink);
2436-
if (!source) {
2436+
if (IS_ERR(source)) {
24372437
dev_err(unicam->dev, "No connected sensor pad\n");
2438-
return -ENOTCONN;
2438+
return PTR_ERR(source);
24392439
}
24402440

24412441
unicam->sensor.subdev = subdev;
@@ -2661,17 +2661,13 @@ static int unicam_probe(struct platform_device *pdev)
26612661
}
26622662

26632663
ret = platform_get_irq(pdev, 0);
2664-
if (ret <= 0) {
2665-
dev_err(&pdev->dev, "No IRQ resource\n");
2666-
ret = -EINVAL;
2664+
if (ret < 0)
26672665
goto err_unicam_put;
2668-
}
26692666

26702667
ret = devm_request_irq(&pdev->dev, ret, unicam_isr, 0,
26712668
"unicam_capture0", unicam);
26722669
if (ret) {
26732670
dev_err(&pdev->dev, "Unable to request interrupt\n");
2674-
ret = -EINVAL;
26752671
goto err_unicam_put;
26762672
}
26772673

@@ -2704,7 +2700,7 @@ static int unicam_probe(struct platform_device *pdev)
27042700
return ret;
27052701
}
27062702

2707-
static int unicam_remove(struct platform_device *pdev)
2703+
static void unicam_remove(struct platform_device *pdev)
27082704
{
27092705
struct unicam_device *unicam = platform_get_drvdata(pdev);
27102706

@@ -2718,8 +2714,6 @@ static int unicam_remove(struct platform_device *pdev)
27182714
unicam_put(unicam);
27192715

27202716
pm_runtime_disable(&pdev->dev);
2721-
2722-
return 0;
27232717
}
27242718

27252719
static const struct of_device_id unicam_of_match[] = {
@@ -2730,7 +2724,7 @@ MODULE_DEVICE_TABLE(of, unicam_of_match);
27302724

27312725
static struct platform_driver unicam_driver = {
27322726
.probe = unicam_probe,
2733-
.remove = unicam_remove,
2727+
.remove_new = unicam_remove,
27342728
.driver = {
27352729
.name = UNICAM_MODULE_NAME,
27362730
.pm = pm_ptr(&unicam_pm_ops),

0 commit comments

Comments
 (0)