From patchwork Mon Oct 2 07:04:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 13405605 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 E111EE7849A for ; Mon, 2 Oct 2023 07:05:43 +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:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5f9ms0mkWuj0nQe4zBYD4pJwX5o/lTuz64dDR8TG5MA=; b=HxX9z2NDNLLlFR 0bfk9g08P4/yrqE10fKmfssMSPjKpCVfMQyzp0u3HxTE5UT399nEiVayiJp98PFRU5QtwZqO7n8z/ lLAgrxcZRXZV6bB6WYCcUCszZZD+ahJVmoehex9at8JiA9QA1yyE2XTV/ZRjPvVF5qeiFeXOQ0jd0 ahU1zZjgYP/oQvH8U4EkFJQfFD1Mu0BTI3x4iXkQ2VwzEvYQvooQn+toBEggqchaIKYdLJJt1kVW4 IhONyZRxlwaySj3GAa8+LIML2WorBVk58gqzE4xlBdYEJHpvMAL+i+70DWw9lmK/P3GM14K+ELTAM lSvjoVnwPkgQqW/BM9nA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnCzP-00C47f-2u; Mon, 02 Oct 2023 07:05:11 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnCzJ-00C478-2z for linux-arm-kernel@lists.infradead.org; Mon, 02 Oct 2023 07:05:09 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-503f39d3236so24846765e87.0 for ; Mon, 02 Oct 2023 00:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696230303; x=1696835103; darn=lists.infradead.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=p3WSZwdkcjvjhe/gpQ76zvJY2T86inbO4LfRqWd0a6w=; b=NKkigo+VsxWLzeU6VVhq/S+klIOKIbOX5F8igiBnBX/s69owOBspzGUbLxwWN3MCWh yEWhdFPXPvwds5IkYOWQvY2NbY4gy2dFnTMw1Ro3OCuwWOc69NxHOwhHDqSS83vunpYi WD5InTSXHF1/TKVc8fs2wz07DPTnVcLLcSOH7G3dTrnrRgi6cf9twD0Hg/KEK4DQeWF3 etInmfARvmZDHLNjswCY8YCLuEFIJUHfuVTdAUeLL3AshGY6aP040zQ9O6bFnylFdE3x 0XctZgraV1ECB5w6YsPNn5QU57vRTEetKuyrhvCZN5nA1RrxI8FJEcvlkmohk/U/jp3s We+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696230303; x=1696835103; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p3WSZwdkcjvjhe/gpQ76zvJY2T86inbO4LfRqWd0a6w=; b=t92AU3Ly5tvNs9xiWorpywWy5mblGrEAHpkz6dKEQWsr5zhmJDnIEzZ7r4PEKOr4Gk 3UCg9dK2X4PacGRq50u8o/qTVRc5AYrGmQwCTSVdTerFLnB4/PgYbUH1WODXP290PXEh bY3XutqO+QHWLGuhG5nIbZN3cGmtEReMHBbi4fpvVwSvMOqLrnFnkz+AKiWMrlAESsxu SIh1sPuwuqllaGjnl4Pm92+qYQBsR7Wg8lBz/FJROY6QsrIbuxO0nJMy/L1AK/PFfiS1 aVy/Aaj/sJwf4kEvgHSn0IeP0zZ42zxHvGGUFQQR+YpSnwplTtebaGwV2tUevKu1ItbI qRcg== X-Gm-Message-State: AOJu0YwAly/F+QBZE6tG2eex6H8RUCtIJ4g/TOFKUPBKuqU7wjwV3HYQ 7dmcwf4GKnlBa6gVty9T8uGgsA== X-Google-Smtp-Source: AGHT+IGwerErhtnDVzz1WhrfkBcTpmotFSKxSZgpYhF5J+JqODTofqGXeokFOz10GvBV3SwrupD0uQ== X-Received: by 2002:a05:6512:691:b0:504:7ff8:3430 with SMTP id t17-20020a056512069100b005047ff83430mr9907489lfe.10.1696230303039; Mon, 02 Oct 2023 00:05:03 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id o14-20020a05600c4fce00b00405d9a950a2sm6256010wmq.28.2023.10.02.00.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 00:05:02 -0700 (PDT) Date: Mon, 2 Oct 2023 10:04:59 +0300 From: Dan Carpenter To: Rob Herring Cc: =?iso-8859-1?q?Beno=EEt?= Cousson , Paul Walmsley , Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org Subject: [PATCH] ARM: omap2: fix a debug printk Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231002_000505_970478_83EA074A X-CRM114-Status: GOOD ( 12.41 ) 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 %pR format string takes a pointer to struct resource, but this is passing a pointer to a pointer which it will print wrong information. Fixes: c63f5b454885 ("ARM: omap2: Use of_range_to_resource() for "ranges" parsing") Signed-off-by: Dan Carpenter --- arch/arm/mach-omap2/omap_hwmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 1e17b5f77588..ba71928c0fcb 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -2209,7 +2209,7 @@ int omap_hwmod_parse_module_range(struct omap_hwmod *oh, return err; pr_debug("omap_hwmod: %s %pOFn at %pR\n", - oh->name, np, &res); + oh->name, np, res); if (oh && oh->mpu_rt_idx) { omap_hwmod_fix_mpu_rt_idx(oh, np, res);