CAN driver: Oop. unlink method does not exist if there operaions on the pseudo filesystem are disabled
This commit is contained in:
parent
3e12bb9963
commit
f4a2ebc220
|
@ -112,11 +112,13 @@ static const struct file_operations g_canops =
|
||||||
can_read, /* read */
|
can_read, /* read */
|
||||||
can_write, /* write */
|
can_write, /* write */
|
||||||
0, /* seek */
|
0, /* seek */
|
||||||
can_ioctl, /* ioctl */
|
can_ioctl /* ioctl */
|
||||||
#ifndef CONFIG_DISABLE_POLL
|
#ifndef CONFIG_DISABLE_POLL
|
||||||
0, /* poll */
|
, 0 /* poll */
|
||||||
|
#endif
|
||||||
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
|
, 0 /* unlink */
|
||||||
#endif
|
#endif
|
||||||
0 /* unlink */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue