From patchwork Wed May 1 13:08:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13650749 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 42657C25B5F for ; Wed, 1 May 2024 13:08:38 +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=J7jccS55bTPnwb7JmfRsxvHjEXgRAyHn1jmS5HR4Kc8=; b=eSBOIOYTIJZR+E 7pTehVFuUzvgtqp6NDNU0Y1x7nSIGIRvQbyTtkU1ymI4DE23KzMfaTcRQVwX690dUKvpm1OR/wGGO 9Ffmwd/NtGYcEzDobe6DInlfF9dhFbsR9C/ataxL2bD/JhXB4+Nl9PgVfX9I7VMf2nnLpg8RuVsk6 fQrTvjKAeZVzGsN8xkqlIrrqifvPkTiYhg6MyQHhT5wxLpvH+ESUYW46bjeto3AmOsjyO7E9vJ0Hn Qf9QPnOCT2rBpOHp52y9+sGpmfUB1LAgXLf5Gd+40h1nLf93JHgfxCXzL6KphqFFTokrnFgVnPCKr PJPAZYcKLZ/pWWnGn+Fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s29hA-00000009dj2-2WNt; Wed, 01 May 2024 13:08:25 +0000 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s29h3-00000009dcw-2sW0 for linux-arm-kernel@lists.infradead.org; Wed, 01 May 2024 13:08:19 +0000 Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-6a0e72e19b5so6402826d6.3 for ; Wed, 01 May 2024 06:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714568894; x=1715173694; 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=t4YWfk8RHGxp4UPGDejpf4mUjri4mE+IBxPLABnVZ8s=; b=HWX4oH9f0TaJCDYJoTZzUdnqT4UgLNb9a/0vm3aXaIEKFl8mTbtF8fCq3hzNe2pDbz 8FkqMH+70cIwByPTRRLih/sxdI9jrN1EScEHpHHLu2hZDW3J7TtuGcPxV3vUv1vSAjb2 pHYSVuU6LqDe712SBDc0Ng8VnMr+74L+59lvk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714568894; x=1715173694; 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=t4YWfk8RHGxp4UPGDejpf4mUjri4mE+IBxPLABnVZ8s=; b=S1EFJeaw8AIVMW2dT9gsUvs2tMe+h3ntPw74zhzvH58S29EaLQQnw4sKeKF2I/OgIZ J+qvtjL0YfjP0govOUN9S6rYS7ca2ay6B5OWea4ReVPuHXmzVI+dMsSA85UkEgGa9JYj FcyE9pvIhB2SenAGxkyeWByrgaq332i5LYIAUx4cYhynQhxN9JkW05YZjBHs+hWYTbCe /x5+5cWhRNgNfJv6ll2WWYMzMQZcHfgPcIvo1s438e67NQUt6lXykPqDTYThRgl4QgTk xtZ5ZsMxsozuDJcDWmTfF+7PNpSwEieAtOqTm9oCGD/J6JCD/3TEK06xoofKaZcjZIAa 63UA== X-Forwarded-Encrypted: i=1; AJvYcCXX16tSZoPZvBuJGJB7yBOqxPTVfBBuYoOIL+6KfI11k1HNlNYRu8tz6mLjI7iRH2qCXgxDX42gNbqnEn+vj8FoXX6qRCIbhMx+JDvhdby08g1MOyc= X-Gm-Message-State: AOJu0Yx0aqnO7J0nzD7zh4FLuFdCjZ4sjKLLYYVTyr7nbb6bxeSDV9gu 3O6z+lUxJQVnBN7EZj2U0Sm9KVB/fXyhNX0SNn6+1DgqzA7qR88uVm3ohr7kSA== X-Google-Smtp-Source: AGHT+IGq5qL9sa8p5ZZp4PD7t6F2nP9QMolqC/miQC8Zec7V4HBvxkYsOoa5pPf0S1YbJ4PC1AiGEA== X-Received: by 2002:a05:6214:c8d:b0:6a0:caba:7e36 with SMTP id r13-20020a0562140c8d00b006a0caba7e36mr2957189qvr.29.1714568894525; Wed, 01 May 2024 06:08:14 -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 l26-20020a0c979a000000b0069b10d78445sm12430971qvd.142.2024.05.01.06.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:08:13 -0700 (PDT) From: Ricardo Ribalda Date: Wed, 01 May 2024 13:08:09 +0000 Subject: [PATCH v2 1/5] media: bcm2835-unicam: Fix build with !PM MIME-Version: 1.0 Message-Id: <20240501-fix-ipu6-v2-1-a5629a37a0fb@chromium.org> References: <20240501-fix-ipu6-v2-0-a5629a37a0fb@chromium.org> In-Reply-To: <20240501-fix-ipu6-v2-0-a5629a37a0fb@chromium.org> To: Mauro Carvalho Chehab , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Sakari Ailus , Bingbu Cao , Tianshu Qiu 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-20240501_060817_759714_63329210 X-CRM114-Status: GOOD ( 16.10 ) 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 The driver can only match the device vide the DT table, so the table should always be used, of_match_ptr does not make sense here. Fixes: drivers/media/platform/broadcom/bcm2835-unicam.c:2724:34: warning: ‘unicam_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Ricardo Ribalda --- drivers/media/platform/broadcom/bcm2835-unicam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c index bd2bbb53070e..c590e26fe2cf 100644 --- a/drivers/media/platform/broadcom/bcm2835-unicam.c +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c @@ -2733,7 +2733,7 @@ static struct platform_driver unicam_driver = { .driver = { .name = UNICAM_MODULE_NAME, .pm = pm_ptr(&unicam_pm_ops), - .of_match_table = of_match_ptr(unicam_of_match), + .of_match_table = unicam_of_match, }, };