Changeset d51838f in mainline for uspace/drv/char/pl050/pl050.c


Ignore:
Timestamp:
2017-10-14T22:49:18Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75911d24
Parents:
ce732e74
Message:

Let leaf drivers enable/disable/clear interrupts via hw_res instead of directly using irc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/pl050/pl050.c

    rce732e74 rd51838f  
    3838#include <ddf/interrupt.h>
    3939#include <ddf/log.h>
     40#include <device/hw_res.h>
    4041#include <device/hw_res_parsed.h>
    4142#include <io/chardev_srv.h>
    42 #include <irc.h>
    4343
    4444#include "pl050_hw.h"
     
    221221        }
    222222
    223         rc = irc_enable_interrupt(res.irqs.irqs[0]);
     223        rc = hw_res_enable_interrupt(pl050->parent_sess, res.irqs.irqs[0]);
    224224        if (rc != EOK) {
    225225                ddf_msg(LVL_ERROR, "Failed enabling interrupt. (%d)", rc);
Note: See TracChangeset for help on using the changeset viewer.