diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-09 00:08:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-09 00:08:54 +0000 |
commit | da889ad22acc0c476b1485b3fd6959825d30240d (patch) | |
tree | 5661e6dacbe8ea5d91ea7acba822d0756ce871c4 /nuttx/drivers | |
parent | fd897be13dbb8a1206446254a55866c015ed4f48 (diff) | |
download | px4-nuttx-da889ad22acc0c476b1485b3fd6959825d30240d.tar.gz px4-nuttx-da889ad22acc0c476b1485b3fd6959825d30240d.tar.bz2 px4-nuttx-da889ad22acc0c476b1485b3fd6959825d30240d.zip |
Reflect changes due to fs structures
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@211 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/dev_null.c | 3 | ||||
-rw-r--r-- | nuttx/drivers/serial.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/dev_null.c b/nuttx/drivers/dev_null.c index 0998f424b..c08f9b034 100644 --- a/nuttx/drivers/dev_null.c +++ b/nuttx/drivers/dev_null.c @@ -65,6 +65,7 @@ static struct file_operations devnull_fops = 0, /* close */ devnull_read, /* read */ devnull_write, /* write */ + 0, /* seek */ 0 /* ioctl */ }; @@ -88,5 +89,5 @@ static ssize_t devnull_write(struct file *filp, const char *buffer, size_t len) void devnull_register(void) { - (void)register_inode("/dev/null", &devnull_fops, 0666, NULL); + (void)register_driver("/dev/null", &devnull_fops, 0666, NULL); } diff --git a/nuttx/drivers/serial.c b/nuttx/drivers/serial.c index 29bfa27d7..e525b067e 100644 --- a/nuttx/drivers/serial.c +++ b/nuttx/drivers/serial.c @@ -83,6 +83,7 @@ struct file_operations g_serialops = uart_close, /* close */ uart_read, /* read */ uart_write, /* write */ + 0, /* seek */ uart_ioctl /* ioctl */ }; @@ -449,7 +450,7 @@ int uart_register(const char *path, uart_dev_t *dev) sem_init(&dev->recvsem, 0, 0); dbg("Registering %s\n", path); - return register_inode(path, &g_serialops, 0666, dev); + return register_driver(path, &g_serialops, 0666, dev); } /************************************************************************************ |