[PATCH 4.4 31/86] chardev: add helper function to register char devs with a struct device