Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6051976ybp; Tue, 15 Oct 2019 08:55:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAq8f2ProUbkw7PjzFAAX2o2gymvQcDKWqyEaagUtnA1AStE+BEnw3OIeP2b06vTKGR8H0 X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr35021025edv.284.1571154910441; Tue, 15 Oct 2019 08:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571154910; cv=none; d=google.com; s=arc-20160816; b=qLt/X3i2KWlqM7yQF17bu7KbhOw8GAeYZyB9ZvXI26EsYH6mkINaHofyaH5MHIiFZT cF5JZRl3ocl/jSyDoHMlCdERJIBboJqIgGPS2mKvtP33LHyMUVtNFOwWaEQk8OM+Zu+L QXaEQNHArAFwQoT4+sGNUoGpgIURXuxvt7gTDDP67Wzy90WIvgw3+9w0ZC4/LOrkAFOG /b6Zi4pV7xmywMImn8Vfca01CdJfVePz6fI3Z9lCkH1NHJbz83XBuHu46JcIQ8FK3W/d Vi5S/P+NMU32a29dEbrfVhMrsiEXb9eFMkWa9aic7Dp4yo+pWm8NIYONwJDp4XDTTDEk vGbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XJLhfr5WCxRxVr/OzFsvUklIeoC8YwodWvLsU1wUJTA=; b=iHKF9kI0TYiQUFzVzyrOiMViMkzXcaqjqT8zMqNiVOAqqX5UTPDYX01iIhIlpdeTTR vCx1jR/msqCN1DKXCYKIG/3NeUZIq/OHXOGlwra74p8va7DrmwWA9qNZJAEidjjfPuHK xQUDB9pVaqwOaIzj0y7BAj4yBJ0GAK4Rr9G4h+R5DrQA94RIZvqBQ+czHPI9EATjLCsH CuX1WogyW2C3P8Vzkho5Cc/2pFm1VmY0ILLuekDcoA16gDkbbfXdazxN6fXKOFHVXc0a abYfm3ZZMjX1yLvxAEley3tBlYH/iXBUD4JulkFee2We15RUUtQqJrbt5TiM87pUEVLd BX5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si14312321edb.346.2019.10.15.08.54.47; Tue, 15 Oct 2019 08:55:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387647AbfJOPyZ (ORCPT + 99 others); Tue, 15 Oct 2019 11:54:25 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:53411 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728197AbfJOPyZ (ORCPT ); Tue, 15 Oct 2019 11:54:25 -0400 Received: from [167.98.27.226] (helo=rainbowdash.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iKP9M-0007JU-6w; Tue, 15 Oct 2019 16:54:16 +0100 Received: from ben by rainbowdash.codethink.co.uk with local (Exim 4.92.2) (envelope-from ) id 1iKP9L-0006aI-I0; Tue, 15 Oct 2019 16:54:15 +0100 From: "Ben Dooks (Codethink)" To: linux-kernel@lists.codethink.co.uk Cc: "Ben Dooks (Codethink)" , Sebastian Reichel , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: reset: fix __le32 cast in reset code Date: Tue, 15 Oct 2019 16:54:14 +0100 Message-Id: <20191015155414.25267-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The writel() takes standard integers, not __le32 so fix the following sparse warnings by removing the cpu_to_le32() calls. drivers/power/reset/at91-reset.c:134:9: warning: cast from restricted __le32 drivers/power/reset/at91-reset.c:143:9: warning: cast from restricted __le32 This has made no code changes, the md5sums pre and post applying this patch are the same. The at91 should be natively little endian anyway. Signed-off-by: Ben Dooks --- Cc: Sebastian Reichel Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Ludovic Desroches Cc: linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/power/reset/at91-reset.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c index 44ca983a49a1..d94e3267c3b6 100644 --- a/drivers/power/reset/at91-reset.c +++ b/drivers/power/reset/at91-reset.c @@ -131,7 +131,7 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode, static int sama5d3_restart(struct notifier_block *this, unsigned long mode, void *cmd) { - writel(cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST), + writel(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST, at91_rstc_base); return NOTIFY_DONE; @@ -140,9 +140,7 @@ static int sama5d3_restart(struct notifier_block *this, unsigned long mode, static int samx7_restart(struct notifier_block *this, unsigned long mode, void *cmd) { - writel(cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PROCRST), - at91_rstc_base); - + writel(AT91_RSTC_KEY | AT91_RSTC_PROCRST, at91_rstc_base); return NOTIFY_DONE; } -- 2.23.0