How to integrate a custom device driver into kernel tree

Integrating a custom device driver into a Linux reference tree.