In order to get rid of a lot of cleanup boilerplate code, use the device-managed registration API. Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Jassi Brar <[email protected]>