vme: add missing put_device() after device_register() fails
authorEmilio G. Cota <cota@braap.org>
Wed, 13 Feb 2013 18:47:54 +0000 (13:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 17:24:14 +0000 (09:24 -0800)
put_device() must be called after device_register() fails,
since device_register() always initializes the refcount
on the device structure.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found