diff --git a/drivers/can.c b/drivers/can.c index 0635767992..6eb98cc0a6 100644 --- a/drivers/can.c +++ b/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 */ }; /****************************************************************************