Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1351011 > unrolled thread
| Started by | Paul Cercueil <paul@crapouillou.net> |
|---|---|
| First post | 2016-03-06 01:00 +0100 |
| Last post | 2016-03-06 04:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] serial: 8250_ingenic: Remove global variable Paul Cercueil <paul@crapouillou.net> - 2016-03-06 01:00 +0100
Re: [PATCH] serial: 8250_ingenic: Remove global variable Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-03-06 04:10 +0100
| From | Paul Cercueil <paul@crapouillou.net> |
|---|---|
| Date | 2016-03-06 01:00 +0100 |
| Subject | [PATCH] serial: 8250_ingenic: Remove global variable |
| Message-ID | <r9uh4-57O-13@gated-at.bofh.it> |
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/tty/serial/8250/8250_ingenic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/tty/serial/8250/8250_ingenic.c b/drivers/tty/serial/8250/8250_ingenic.c
index 155b785..aa1f156 100644
--- a/drivers/tty/serial/8250/8250_ingenic.c
+++ b/drivers/tty/serial/8250/8250_ingenic.c
@@ -49,8 +49,6 @@ static const struct of_device_id of_match[];
#define UART_MCR_FCM BIT(6)
#ifdef CONFIG_SERIAL_EARLYCON
-static struct earlycon_device *early_device;
-
static uint8_t __init early_in(struct uart_port *port, int offset)
{
return readl(port->membase + (offset << 2));
@@ -75,6 +73,8 @@ static void __init ingenic_early_console_putc(struct uart_port *port, int c)
static void __init ingenic_early_console_write(struct console *console,
const char *s, unsigned int count)
{
+ struct earlycon_device *early_device = console->data;
+
uart_console_write(&early_device->port, s, count,
ingenic_early_console_putc);
}
@@ -124,7 +124,7 @@ static int __init ingenic_early_console_setup(struct earlycon_device *dev,
early_out(port, UART_DLM, (divisor >> 8) & 0xff);
early_out(port, UART_LCR, UART_LCR_WLEN8);
- early_device = dev;
+ dev->con->data = dev;
dev->con->write = ingenic_early_console_write;
return 0;
--
2.7.0
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2016-03-06 04:10 +0100 |
| Message-ID | <r9xeV-7sG-5@gated-at.bofh.it> |
| In reply to | #1351011 |
On Sun, Mar 06, 2016 at 12:55:55AM +0100, Paul Cercueil wrote: > Signed-off-by: Paul Cercueil <paul@crapouillou.net> > --- > drivers/tty/serial/8250/8250_ingenic.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) I can't take patches without a changelog entry :(
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web