Change to modern char device registration