]> git.karo-electronics.de Git - linux-beck.git/commit
drivers/rtc/class.c: fix device_register() error handling
authorVasiliy Kulikov <segooon@gmail.com>
Wed, 27 Oct 2010 22:33:04 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:06 +0000 (18:03 -0700)
commit59cca865f21e9e7beab73fcf79ba4eb776a4c228
tree220a53454207a479af3fa04a9ffcf836811a21f8
parentd7c7ef908b6497bb871e2e113e66e8fb0f757543
drivers/rtc/class.c: fix device_register() error handling

If device_register() fails then call put_device().  See comment to
device_register.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/class.c