Unable to compile realPort on Amazon Linux

I get this when doing a make all:

/usr/src/dgrp-1.9/driver/build/dgrp_common.c: In function ‘dgrp_create_proc_entry’:
/usr/src/dgrp-1.9/driver/build/dgrp_common.c:628:46: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
628 | return proc_create_data(name, mode, parent, fops, data);
| ^~~~
| |
| struct file_operations *
In file included from /usr/src/dgrp-1.9/driver/2.6.27/include/dgrp_common.h:299,
from /usr/src/dgrp-1.9/driver/build/dgrp_common.c:55:
./include/linux/proc_fs.h:106:13: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
106 | const struct proc_ops *,
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

My kernel is Linux 5.10.102-99.473.amzn2.x86_64

Any suggestions. It looks like the source is correct and it should be struct file_options, but I found the header and it is looking for struct proc_ops