Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2013-02-14T23:02:56Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
fe6593b7
Parents:
2e55443
Message:

Fix macro to return the value of a register, not the address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/am335x/ctrl_module.h

    r2e55443 rf942226e  
    4949am335x_ctrl_module_clock_freq_get(am335x_ctrl_module_t *base, unsigned *freq)
    5050{
    51         unsigned const control_status = *AM335x_CTRL_MODULE_REG_ADDR(base,
     51        unsigned const control_status = AM335x_CTRL_MODULE_REG_VALUE(base,
    5252            CONTROL_STATUS);
    5353        unsigned const sysboot1 = (control_status >> 22) & 0x03;
Note: See TracChangeset for help on using the changeset viewer.