Ignore:
Timestamp:
2018-04-15T09:35:04Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/am335x/timer.c

    r8ebe212 r18b6a88  
    4747
    4848typedef struct timer_regs_mmap {
    49         uintptr_t base;
    50         size_t size;
     49        uintptr_t base;
     50        size_t size;
    5151} timer_regs_mmap_t;
    5252
    5353static const timer_regs_mmap_t regs_map[TIMERS_MAX] = {
    5454        { .base = AM335x_DMTIMER0_BASE_ADDRESS, .size = AM335x_DMTIMER0_SIZE },
    55         {0, 0}, /* DMTIMER1 is not supported by this driver */
     55        { 0, 0 }, /* DMTIMER1 is not supported by this driver */
    5656        { .base = AM335x_DMTIMER2_BASE_ADDRESS, .size = AM335x_DMTIMER2_SIZE },
    5757        { .base = AM335x_DMTIMER3_BASE_ADDRESS, .size = AM335x_DMTIMER3_SIZE },
     
    6767        am335x_timer_regs_t *regs = timer->regs;
    6868
    69         while (regs->twps & reg);
     69        while (regs->twps & reg)
     70                ;
    7071
    7172        switch (reg) {
     
    149150        timer->regs->tiocp_cfg |= AM335x_TIMER_TIOCPCFG_SOFTRESET_FLAG;
    150151        /* Wait until the reset is done */
    151         while (timer->regs->tiocp_cfg & AM335x_TIMER_TIOCPCFG_SOFTRESET_FLAG);
     152        while (timer->regs->tiocp_cfg & AM335x_TIMER_TIOCPCFG_SOFTRESET_FLAG)
     153                ;
    152154}
    153155
Note: See TracChangeset for help on using the changeset viewer.