Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ttyebusm.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,11 @@ unsigned int ttyebus_raspi_model(void)
set_fs(old_fs);
return 0;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
NumBytes = kernel_read(filp, buf, sizeof(buf), 0);
#else
NumBytes = filp->f_op->read(filp, buf, sizeof(buf), &filp->f_pos);
#endif
set_fs(old_fs);

// restore the segment descriptor
Expand Down