From patchwork Tue Apr 30 07:51:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13648440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37330C4345F for ; Tue, 30 Apr 2024 07:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+4ijH4yl3Qh4uiZRiS6tn0LsGcy73xTVvnoBhHpJzxo=; b=qJrHdQh/qjmwWp LmqdI74A2VLUN3sis1dhk00TJUKK/JTLLrwwhcaP0FidqKzrDdPuuZBnMY4zG1gdWMJhQoDfIL5lX 0E0vKVIpd4QBozah6FW2Oo2BNHbTyO7wld2G3kN+2foQDT4eCfQrRUXvRDx+gJtw1wNACn1okG/+B 6YnDlHCpm8eBu25s+7G0rYqKjnqnQfTAwRMc2sUdW/hWHGXuJFYHZ31PUrKWIHCNN3+4nPhi/bQQi UEdI559BhpigY1lWzLpC/xl86yt3Du0g2EvRxPg6YG4jYQHT3mPV/bf2hnYjHnJt7wFnX3csuhzuT gmruf0oa88MpUja6qRfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1iHR-00000005VPh-1Kba; Tue, 30 Apr 2024 07:52:01 +0000 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1iH1-00000005VDQ-2wgg for linux-arm-kernel@lists.infradead.org; Tue, 30 Apr 2024 07:51:39 +0000 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-437c32af2efso34040511cf.3 for ; Tue, 30 Apr 2024 00:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714463493; x=1715068293; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dyrqsw7hfapafht5q6ARwJmOBtyDG2HfDsUwyULf8rA=; b=S4sdDbmPvD7m/M5nv8NhODkV39kPCPDwGduY8XKtrsZROySqC4bfeejvV63vggCrEB A5Ksdsfkh8iD6zXArzQkLtZhSIYMknm5s1HaNETgbAKOVWxKwHbRIJp14rrk2L3JnTxK UWwbrebgghYP1Iz8liQ3uewXiPxcrgfTA/c3Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714463493; x=1715068293; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dyrqsw7hfapafht5q6ARwJmOBtyDG2HfDsUwyULf8rA=; b=Tr4Lb8omtt2W+uHwmzzUrD92XuBOJOOEtxxRQov9ilT6FpkSumRfJaJzrg0gGroLD7 dqRvU30U93/dBoDJuYj/BqkVP5/kgL03Szcjj6BkbPTkO6D6QSdiFKDxmPr7s0+1Xhv+ lFIMmMf0fkW7S2NAwUjqQg4dvTC1z84GWBWLP8wgegvuU52UaZ0L9K7csy/4lmAUHC/Z XlS/V/HNKZP5+j7q+PpYClxS+pmhaiSjndrweTrRPedUm8x7cyv45tO06JeqWkemOi9/ hC7qeeywGOTb91L6/f8EYVRrUY+OCoyew126Al9k6nd8W+XiV1xS5HAs729T7+Rfa0kx 4Caw== X-Forwarded-Encrypted: i=1; AJvYcCWEFfuZiqnm8H7mkGtl6Bl6B+1Ytfyuz/YtFrr3f2n+QR+y/mXOg6kZQyNYpqxCYDe8X5l8CAXQJGF+H1G0YFmArDXUsclfvtj+aZpuZ/skeY+XfPY= X-Gm-Message-State: AOJu0YwkIoe+ZHnq30enckh6+VrKlQiHkVVp6FSNYKNy4qQjo0E9hPOE cXGTlYkNauDKfZHkgPVkaB2yQMBTqdO+eGlljpKQVI8l5nr+NtPb6pn1GWQ4Eg== X-Google-Smtp-Source: AGHT+IECfMNRuKAOBTGNP1xzyMsseRJw3Hkb0lRny7MABhW2k54/n2V9s46e7u1H3Xer9VaXIy6adA== X-Received: by 2002:a05:622a:4d2:b0:43b:c4:4188 with SMTP id q18-20020a05622a04d200b0043b00c44188mr4041838qtx.41.1714463493327; Tue, 30 Apr 2024 00:51:33 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id z11-20020a05622a124b00b00437b4048972sm10634547qtx.18.2024.04.30.00.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:51:32 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 30 Apr 2024 07:51:27 +0000 Subject: [PATCH 2/3] media: bcm2835-unicam: Do not print error when irq not found MIME-Version: 1.0 Message-Id: <20240430-fix-broad-v1-2-cf3b81bf97ff@chromium.org> References: <20240430-fix-broad-v1-0-cf3b81bf97ff@chromium.org> In-Reply-To: <20240430-fix-broad-v1-0-cf3b81bf97ff@chromium.org> To: Mauro Carvalho Chehab , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden Cc: linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hans Verkuil , Ricardo Ribalda X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240430_005135_835669_B0A7B16B X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org platform_get_irq() already prints an error for us. Fixes cocci: drivers/media/platform/broadcom/bcm2835-unicam.c:2664:2-9: line 2664 is redundant because platform_get_irq() already prints an error Signed-off-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart --- drivers/media/platform/broadcom/bcm2835-unicam.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c index 2a3a27ac70ba..b2b23d24da19 100644 --- a/drivers/media/platform/broadcom/bcm2835-unicam.c +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c @@ -2661,7 +2661,6 @@ static int unicam_probe(struct platform_device *pdev) ret = platform_get_irq(pdev, 0); if (ret < 0) { - dev_err(&pdev->dev, "No IRQ resource\n"); if (ret != -EPROBE_DEFER) ret = -EINVAL; goto err_unicam_put;