Changes in uspace/drv/intctl/obio/obio.c [b7fd2a0:ce96ec2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/obio/obio.c
rb7fd2a0 rce96ec2 47 47 #include <ddi.h> 48 48 #include <errno.h> 49 #include <str_error.h>50 49 #include <inttypes.h> 51 50 #include <ipc/irc.h> … … 114 113 115 114 /** Add OBIO device. */ 116 errno_t obio_add(obio_t *obio, obio_res_t *res)115 int obio_add(obio_t *obio, obio_res_t *res) 117 116 { 118 117 ddf_fun_t *fun_a = NULL; 119 errno_t rc;118 int rc; 120 119 121 120 rc = pio_enable((void *)res->base, OBIO_SIZE, (void **) &obio->regs); … … 139 138 rc = ddf_fun_bind(fun_a); 140 139 if (rc != EOK) { 141 ddf_msg(LVL_ERROR, "Failed binding function 'a' : %s", str_error(rc));140 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc); 142 141 goto error; 143 142 } … … 155 154 156 155 /** Remove OBIO device */ 157 errno_t obio_remove(obio_t *obio)156 int obio_remove(obio_t *obio) 158 157 { 159 158 return ENOTSUP; … … 161 160 162 161 /** OBIO device gone */ 163 errno_t obio_gone(obio_t *obio)162 int obio_gone(obio_t *obio) 164 163 { 165 164 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.