* [PATCH] serial: atmel_serial: remove atmel open/close hooks
@ 2012-11-17 0:09 Joachim Eastwood
2012-11-19 8:54 ` Nicolas Ferre
0 siblings, 1 reply; 2+ messages in thread
From: Joachim Eastwood @ 2012-11-17 0:09 UTC (permalink / raw)
To: linux, gregkh
Cc: nicolas.ferre, plagnioj, avictor.za, alan, linux-arm-kernel,
linux-serial, Joachim Eastwood
After serial_at91.h was removed the atmel_open/close_hook
code is now useless.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
Hi,
This patch depends on [RFC 3/3] ARM/AVR32: get rid of serial_at91.h
patch from Russell King.
Patch based on current linux-next with "[RFC 3/3] ARM/AVR32: get rid of serial_at91.h"
patch on top. There is a small conflict with Russell's patch
in next now due to another header change.
If there is another tree this patch should be based on please
let me know.
regards
Joachim Eastwood
drivers/tty/serial/atmel_serial.c | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 76e4c05..5c2337d 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -113,9 +113,6 @@ static void atmel_stop_rx(struct uart_port *port);
#define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR)
#define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR)
-static int (*atmel_open_hook)(struct uart_port *);
-static void (*atmel_close_hook)(struct uart_port *);
-
struct atmel_dma_buffer {
unsigned char *buf;
dma_addr_t dma_addr;
@@ -976,18 +973,6 @@ static int atmel_startup(struct uart_port *port)
pdc->ofs = 0;
}
- /*
- * If there is a specific "open" function (to register
- * control line interrupts)
- */
- if (atmel_open_hook) {
- retval = atmel_open_hook(port);
- if (retval) {
- free_irq(port->irq, port);
- return retval;
- }
- }
-
/* Save current CSR for comparison in atmel_tasklet_func() */
atmel_port->irq_status_prev = UART_GET_CSR(port);
atmel_port->irq_status = atmel_port->irq_status_prev;
@@ -1062,13 +1047,6 @@ static void atmel_shutdown(struct uart_port *port)
* Free the interrupt
*/
free_irq(port->irq, port);
-
- /*
- * If there is a specific "close" function (to unregister
- * control line interrupts)
- */
- if (atmel_close_hook)
- atmel_close_hook(port);
}
/*
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] serial: atmel_serial: remove atmel open/close hooks
2012-11-17 0:09 [PATCH] serial: atmel_serial: remove atmel open/close hooks Joachim Eastwood
@ 2012-11-19 8:54 ` Nicolas Ferre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2012-11-19 8:54 UTC (permalink / raw)
To: Joachim Eastwood, linux
Cc: gregkh, plagnioj, avictor.za, alan, linux-arm-kernel,
linux-serial
On 11/17/2012 01:09 AM, Joachim Eastwood :
> After serial_at91.h was removed the atmel_open/close_hook
> code is now useless.
>
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Thanks Joachim.
> ---
> Hi,
>
> This patch depends on [RFC 3/3] ARM/AVR32: get rid of serial_at91.h
> patch from Russell King.
>
> Patch based on current linux-next with "[RFC 3/3] ARM/AVR32: get rid of serial_at91.h"
> patch on top. There is a small conflict with Russell's patch
> in next now due to another header change.
>
> If there is another tree this patch should be based on please
> let me know.
>
> regards
> Joachim Eastwood
>
> drivers/tty/serial/atmel_serial.c | 22 ----------------------
> 1 file changed, 22 deletions(-)
>
> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
> index 76e4c05..5c2337d 100644
> --- a/drivers/tty/serial/atmel_serial.c
> +++ b/drivers/tty/serial/atmel_serial.c
> @@ -113,9 +113,6 @@ static void atmel_stop_rx(struct uart_port *port);
> #define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR)
> #define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR)
>
> -static int (*atmel_open_hook)(struct uart_port *);
> -static void (*atmel_close_hook)(struct uart_port *);
> -
> struct atmel_dma_buffer {
> unsigned char *buf;
> dma_addr_t dma_addr;
> @@ -976,18 +973,6 @@ static int atmel_startup(struct uart_port *port)
> pdc->ofs = 0;
> }
>
> - /*
> - * If there is a specific "open" function (to register
> - * control line interrupts)
> - */
> - if (atmel_open_hook) {
> - retval = atmel_open_hook(port);
> - if (retval) {
> - free_irq(port->irq, port);
> - return retval;
> - }
> - }
> -
> /* Save current CSR for comparison in atmel_tasklet_func() */
> atmel_port->irq_status_prev = UART_GET_CSR(port);
> atmel_port->irq_status = atmel_port->irq_status_prev;
> @@ -1062,13 +1047,6 @@ static void atmel_shutdown(struct uart_port *port)
> * Free the interrupt
> */
> free_irq(port->irq, port);
> -
> - /*
> - * If there is a specific "close" function (to unregister
> - * control line interrupts)
> - */
> - if (atmel_close_hook)
> - atmel_close_hook(port);
> }
>
> /*
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-19 8:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17 0:09 [PATCH] serial: atmel_serial: remove atmel open/close hooks Joachim Eastwood
2012-11-19 8:54 ` Nicolas Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox