From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: [PATCH v4 2/8] serial: sunzilog: Remove unnecessary volatile keyword Date: Wed, 13 Aug 2014 12:28:52 +0200 Message-ID: <1407925738-26170-3-git-send-email-thierry.reding@gmail.com> References: <1407925738-26170-1-git-send-email-thierry.reding@gmail.com> Return-path: In-Reply-To: <1407925738-26170-1-git-send-email-thierry.reding@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: Russell King , Catalin Marinas , Stephen Boyd , Sam Ravnborg , linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-arch.vger.kernel.org From: Thierry Reding The field annotated with volatile are all accessed through I/O accessors so they don't need to be explicitly marked. The accessors will take care of it. Signed-off-by: Thierry Reding --- Changes in v4: - new patch drivers/tty/serial/sunzilog.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sunzilog.h b/drivers/tty/serial/sunzilog.h index 5dec7b47cc38..de2850c1ab57 100644 --- a/drivers/tty/serial/sunzilog.h +++ b/drivers/tty/serial/sunzilog.h @@ -2,10 +2,10 @@ #define _SUNZILOG_H struct zilog_channel { - volatile unsigned char control; - volatile unsigned char __pad1; - volatile unsigned char data; - volatile unsigned char __pad2; + unsigned char control; + unsigned char __pad1; + unsigned char data; + unsigned char __pad2; }; struct zilog_layout { -- 2.0.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f175.google.com ([74.125.82.175]:34363 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbaHMK3H (ORCPT ); Wed, 13 Aug 2014 06:29:07 -0400 From: Thierry Reding Subject: [PATCH v4 2/8] serial: sunzilog: Remove unnecessary volatile keyword Date: Wed, 13 Aug 2014 12:28:52 +0200 Message-ID: <1407925738-26170-3-git-send-email-thierry.reding@gmail.com> In-Reply-To: <1407925738-26170-1-git-send-email-thierry.reding@gmail.com> References: <1407925738-26170-1-git-send-email-thierry.reding@gmail.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann Cc: Russell King , Catalin Marinas , Stephen Boyd , Sam Ravnborg , linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20140813102852.oLzkBxzEXEqbDLa02SNY_r5kInRdHZFkT0FCcW1xr3I@z> From: Thierry Reding The field annotated with volatile are all accessed through I/O accessors so they don't need to be explicitly marked. The accessors will take care of it. Signed-off-by: Thierry Reding --- Changes in v4: - new patch drivers/tty/serial/sunzilog.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sunzilog.h b/drivers/tty/serial/sunzilog.h index 5dec7b47cc38..de2850c1ab57 100644 --- a/drivers/tty/serial/sunzilog.h +++ b/drivers/tty/serial/sunzilog.h @@ -2,10 +2,10 @@ #define _SUNZILOG_H struct zilog_channel { - volatile unsigned char control; - volatile unsigned char __pad1; - volatile unsigned char data; - volatile unsigned char __pad2; + unsigned char control; + unsigned char __pad1; + unsigned char data; + unsigned char __pad2; }; struct zilog_layout { -- 2.0.4