Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 rb446b02  
    4141#include <ddf/log.h>
    4242#include <errno.h>
    43 #include <str_error.h>
    4443#include <ipc/irc.h>
    4544#include <stdint.h>
     
    5251};
    5352
    54 static errno_t icpic_enable_irq(icpic_t *icpic, sysarg_t irq)
     53static int icpic_enable_irq(icpic_t *icpic, sysarg_t irq)
    5554{
    5655        if (irq > icpic_max_irq)
     
    112111
    113112/** Add icp-ic device. */
    114 errno_t icpic_add(icpic_t *icpic, icpic_res_t *res)
     113int icpic_add(icpic_t *icpic, icpic_res_t *res)
    115114{
    116115        ddf_fun_t *fun_a = NULL;
    117116        void *regs;
    118         errno_t rc;
     117        int rc;
    119118
    120119        rc = pio_enable((void *)res->base, sizeof(icpic_regs_t), &regs);
     
    137136        rc = ddf_fun_bind(fun_a);
    138137        if (rc != EOK) {
    139                 ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
     138                ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
    140139                goto error;
    141140        }
     
    153152
    154153/** Remove icp-ic device */
    155 errno_t icpic_remove(icpic_t *icpic)
     154int icpic_remove(icpic_t *icpic)
    156155{
    157156        return ENOTSUP;
     
    159158
    160159/** icp-ic device gone */
    161 errno_t icpic_gone(icpic_t *icpic)
     160int icpic_gone(icpic_t *icpic)
    162161{
    163162        return ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.