diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-23 19:49:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-23 19:49:19 -0600 |
commit | 53344c97c1ac474502668dde0e28231820fbf078 (patch) | |
tree | 6d50bd6c6ee37d0ba4d7b098fcc75a47cce7aed7 /nuttx/drivers | |
parent | 701fc273a5e955134f7f7b180e37a15cf90dedc7 (diff) | |
download | px4-nuttx-53344c97c1ac474502668dde0e28231820fbf078.tar.gz px4-nuttx-53344c97c1ac474502668dde0e28231820fbf078.tar.bz2 px4-nuttx-53344c97c1ac474502668dde0e28231820fbf078.zip |
CAN driver: Oop. unlink method does not exist if there operaions on the pseudo filesystem are disabled
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/can.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/drivers/can.c b/nuttx/drivers/can.c index 063576799..6eb98cc0a 100644 --- a/nuttx/drivers/can.c +++ b/nuttx/drivers/can.c @@ -112,11 +112,13 @@ static const struct file_operations g_canops = can_read, /* read */ can_write, /* write */ 0, /* seek */ - can_ioctl, /* ioctl */ + can_ioctl /* ioctl */ #ifndef CONFIG_DISABLE_POLL - 0, /* poll */ + , 0 /* poll */ +#endif +#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS + , 0 /* unlink */ #endif - 0 /* unlink */ }; /**************************************************************************** |