Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/intctl/icp-ic/icp-ic.c

    rb446b02 rb7fd2a0  
    4141#include <ddf/log.h>
    4242#include <errno.h>
     43#include <str_error.h>
    4344#include <ipc/irc.h>
    4445#include <stdint.h>
     
    5152};
    5253
    53 static int icpic_enable_irq(icpic_t *icpic, sysarg_t irq)
     54static errno_t icpic_enable_irq(icpic_t *icpic, sysarg_t irq)
    5455{
    5556        if (irq > icpic_max_irq)
     
    111112
    112113/** Add icp-ic device. */
    113 int icpic_add(icpic_t *icpic, icpic_res_t *res)
     114errno_t icpic_add(icpic_t *icpic, icpic_res_t *res)
    114115{
    115116        ddf_fun_t *fun_a = NULL;
    116117        void *regs;
    117         int rc;
     118        errno_t rc;
    118119
    119120        rc = pio_enable((void *)res->base, sizeof(icpic_regs_t), &regs);
     
    136137        rc = ddf_fun_bind(fun_a);
    137138        if (rc != EOK) {
    138                 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
     139                ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
    139140                goto error;
    140141        }
     
    152153
    153154/** Remove icp-ic device */
    154 int icpic_remove(icpic_t *icpic)
     155errno_t icpic_remove(icpic_t *icpic)
    155156{
    156157        return ENOTSUP;
     
    158159
    159160/** icp-ic device gone */
    160 int icpic_gone(icpic_t *icpic)
     161errno_t icpic_gone(icpic_t *icpic)
    161162{
    162163        return ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.