checkpatch: check if put_device is called if device_register fails

This patchs proposes the addition of a logic to show an error to the user
if their patch registers a device but it has no put_device() call if it
fails.

Signed-off-by: Levente Kurusa <levex@linux.com>