lkml.org 
[lkml]   [2009]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 46/56] serial: Remove void casts
    Date
    Remove uneeded void casts

    Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
    ---
    drivers/serial/bfin_5xx.c | 2 +-
    drivers/serial/cpm_uart/cpm_uart_cpm1.c | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
    index 18ba812..f1d39cf 100644
    --- a/drivers/serial/bfin_5xx.c
    +++ b/drivers/serial/bfin_5xx.c
    @@ -591,7 +591,7 @@ static int bfin_serial_startup(struct uart_port *port)
    set_dma_callback(uart->rx_dma_channel, bfin_serial_dma_rx_int, uart);
    set_dma_callback(uart->tx_dma_channel, bfin_serial_dma_tx_int, uart);

    - uart->rx_dma_buf.buf = (unsigned char *)dma_alloc_coherent(NULL, PAGE_SIZE, &dma_handle, GFP_DMA);
    + uart->rx_dma_buf.buf = dma_alloc_coherent(NULL, PAGE_SIZE, &dma_handle, GFP_DMA);
    uart->rx_dma_buf.head = 0;
    uart->rx_dma_buf.tail = 0;
    uart->rx_dma_nrows = 0;
    diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm1.c b/drivers/serial/cpm_uart/cpm_uart_cpm1.c
    index 1b94c56..ad3a876 100644
    --- a/drivers/serial/cpm_uart/cpm_uart_cpm1.c
    +++ b/drivers/serial/cpm_uart/cpm_uart_cpm1.c
    @@ -97,7 +97,7 @@ int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con)
    if (is_con) {
    /* was hostalloc but changed cause it blows away the */
    /* large tlb mapping when pinning the kernel area */
    - mem_addr = (u8 *) cpm_dpram_addr(cpm_dpalloc(memsz, 8));
    + mem_addr = cpm_dpram_addr(cpm_dpalloc(memsz, 8));
    dma_addr = (u32)cpm_dpram_phys(mem_addr);
    } else
    mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr,
    --
    1.5.4.3


    \
     
     \ /
      Last update: 2009-04-08 13:45    [W:0.023 / U:61.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site