I'm late to the party here, but someone else has another version of updated LDD3 code, found here: https://github.com/duxing2007/ldd3-examples-3.x. The author has kept it up to date for kernels 3.0 through 3.14. There are slight differences from the martinezjavier version, such as using mutex_init instead of sema_init.