martinezjavier / ldd3

Linux Device Drivers 3 examples updated to work in recent kernels
http://examples.oreilly.com/9780596005900/
Other
2.38k stars 914 forks source link

Remove redundant fops setting #48

Closed dwalkes closed 4 years ago

dwalkes commented 4 years ago

See https://github.com/martinezjavier/ldd3/issues/33 Based on https://github.com/torvalds/linux/blame/master/fs/char_dev.c#L656 fops has been set in cdev_init since at least 2.6.12.