diff mbox series

[1/5] serial: sprd: Remove unused structure

Message ID 50e1f7f4673bff9d71936b4eb34cbf2571b0fda9.1533950271.git.baolin.wang@linaro.org
State Accepted
Commit 20464f3a9b46ef882b9fdf140dcc7ff6a6db8d4c
Headers show
Series [1/5] serial: sprd: Remove unused structure | expand

Commit Message

(Exiting) Baolin Wang Aug. 11, 2018, 1:34 a.m. UTC
Remove the unused reg_backup structure.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

---
 drivers/tty/serial/sprd_serial.c | 11 -----------
 1 file changed, 11 deletions(-)

-- 
1.9.1

Comments

Chunyan Zhang Sept. 4, 2018, 6:52 a.m. UTC | #1
On 11 August 2018 at 09:34, Baolin Wang <baolin.wang@linaro.org> wrote:
> Remove the unused reg_backup structure.

>

> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>


Acked-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>


> ---

>  drivers/tty/serial/sprd_serial.c | 11 -----------

>  1 file changed, 11 deletions(-)

>

> diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c

> index 828f114..1b0e3fb 100644

> --- a/drivers/tty/serial/sprd_serial.c

> +++ b/drivers/tty/serial/sprd_serial.c

> @@ -95,19 +95,8 @@

>  #define SPRD_IMSR_BREAK_DETECT         BIT(7)

>  #define SPRD_IMSR_TIMEOUT              BIT(13)

>

> -struct reg_backup {

> -       u32 ien;

> -       u32 ctrl0;

> -       u32 ctrl1;

> -       u32 ctrl2;

> -       u32 clkd0;

> -       u32 clkd1;

> -       u32 dspwait;

> -};

> -

>  struct sprd_uart_port {

>         struct uart_port port;

> -       struct reg_backup reg_bak;

>         char name[16];

>  };

>

> --

> 1.9.1

>
diff mbox series

Patch

diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c
index 828f114..1b0e3fb 100644
--- a/drivers/tty/serial/sprd_serial.c
+++ b/drivers/tty/serial/sprd_serial.c
@@ -95,19 +95,8 @@ 
 #define SPRD_IMSR_BREAK_DETECT		BIT(7)
 #define SPRD_IMSR_TIMEOUT		BIT(13)
 
-struct reg_backup {
-	u32 ien;
-	u32 ctrl0;
-	u32 ctrl1;
-	u32 ctrl2;
-	u32 clkd0;
-	u32 clkd1;
-	u32 dspwait;
-};
-
 struct sprd_uart_port {
 	struct uart_port port;
-	struct reg_backup reg_bak;
 	char name[16];
 };