[U-Boot] [PATCH] serial: remove altera serial initializations
Thomas Chou
thomas at wytron.com.tw
Tue Oct 13 15:15:20 CEST 2015
On 10/05/2015 08:51 AM, Thomas Chou wrote:
> Both altera_jtag_serial_initialize() and
> altera_serial_initialize() are no longer used after
> they are converted to driver model.
>
> Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
> ---
> drivers/serial/serial.c | 4 ----
> include/serial.h | 2 --
> 2 files changed, 6 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
> index 699c410..422d3ae 100644
> --- a/drivers/serial/serial.c
> +++ b/drivers/serial/serial.c
> @@ -109,8 +109,6 @@ U_BOOT_ENV_CALLBACK(baudrate, on_baudrate);
> void name(void) \
> __attribute__((weak, alias("serial_null")));
>
> -serial_initfunc(altera_jtag_serial_initialize);
> -serial_initfunc(altera_serial_initialize);
> serial_initfunc(amirix_serial_initialize);
> serial_initfunc(arc_serial_initialize);
> serial_initfunc(arm_dcc_initialize);
> @@ -202,8 +200,6 @@ void serial_register(struct serial_device *dev)
> */
> void serial_initialize(void)
> {
> - altera_jtag_serial_initialize();
> - altera_serial_initialize();
> amirix_serial_initialize();
> arc_serial_initialize();
> arm_dcc_initialize();
> diff --git a/include/serial.h b/include/serial.h
> index de40e94..e490f9a 100644
> --- a/include/serial.h
> +++ b/include/serial.h
> @@ -164,8 +164,6 @@ struct serial_dev_priv {
> /* Access the serial operations for a device */
> #define serial_get_ops(dev) ((struct dm_serial_ops *)(dev)->driver->ops)
>
> -void altera_jtag_serial_initialize(void);
> -void altera_serial_initialize(void);
> void amirix_serial_initialize(void);
> void arc_serial_initialize(void);
> void arm_dcc_initialize(void);
>
More information about the U-Boot
mailing list