zorro: Fix device_register() error handling
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 19 Sep 2010 12:55:21 +0000 (16:55 +0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 22 Oct 2010 07:43:25 +0000 (09:43 +0200)
If device_register() fails then call put_device().
See comment to device_register.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

No differences found