Ignore:
Timestamp:
2017-10-17T13:11:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/pl011/pl011.c

    rdbf32b1 r95c675b  
    3535 */
    3636
     37#include <assert.h>
    3738#include <genarch/drivers/pl011/pl011.h>
    3839#include <console/chardev.h>
    3940#include <console/console.h>
    40 #include <ddi/device.h>
    4141#include <arch/asm.h>
    4242#include <mm/slab.h>
     
    9898bool pl011_uart_init(pl011_uart_t *uart, inr_t interrupt, uintptr_t addr)
    9999{
    100         ASSERT(uart);
     100        assert(uart);
    101101        uart->regs = (void*)km_map(addr, sizeof(pl011_uart_regs_t),
    102102                                   PAGE_NOT_CACHEABLE);
    103         ASSERT(uart->regs);
     103        assert(uart->regs);
    104104
    105105        /* Disable UART */
     
    126126        /* Initialize IRQ */
    127127        irq_initialize(&uart->irq);
    128         uart->irq.devno = device_assign_devno();
    129128        uart->irq.inr = interrupt;
    130129        uart->irq.claim = pl011_uart_claim;
     
    137136void pl011_uart_input_wire(pl011_uart_t *uart, indev_t *indev)
    138137{
    139         ASSERT(uart);
    140         ASSERT(indev);
     138        assert(uart);
     139        assert(indev);
    141140
    142141        uart->indev = indev;
Note: See TracChangeset for help on using the changeset viewer.