Changes in uspace/drv/platform/ski/ski.c [b7fd2a0:6d15572] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/ski/ski.c
rb7fd2a0 r6d15572 46 46 #define NAME "ski" 47 47 48 static errno_t ski_dev_add(ddf_dev_t *dev);48 static int ski_dev_add(ddf_dev_t *dev); 49 49 50 50 static driver_ops_t ski_ops = { … … 57 57 }; 58 58 59 static errno_t ski_add_fun(ddf_dev_t *dev, const char *name, const char *str_match_id)59 static int ski_add_fun(ddf_dev_t *dev, const char *name, const char *str_match_id) 60 60 { 61 61 ddf_msg(LVL_NOTE, "Adding function '%s'.", name); 62 62 63 63 ddf_fun_t *fnode = NULL; 64 errno_t rc;64 int rc; 65 65 66 66 /* Create new device. */ … … 94 94 } 95 95 96 static errno_t ski_add_functions(ddf_dev_t *dev)96 static int ski_add_functions(ddf_dev_t *dev) 97 97 { 98 errno_t rc;98 int rc; 99 99 100 100 rc = ski_add_fun(dev, "console", "ski/console"); … … 106 106 107 107 /** Add device. */ 108 static errno_t ski_dev_add(ddf_dev_t *dev)108 static int ski_dev_add(ddf_dev_t *dev) 109 109 { 110 110 ddf_msg(LVL_NOTE, "ski_dev_add, device handle = %d", … … 121 121 int main(int argc, char *argv[]) 122 122 { 123 errno_t rc;123 int rc; 124 124 125 125 printf(NAME ": Ski platform driver\n");
Note:
See TracChangeset
for help on using the changeset viewer.