commit | 59cca865f21e9e7beab73fcf79ba4eb776a4c228 | [log] [tgz] |
---|---|---|
author | Vasiliy Kulikov <segooon@gmail.com> | Wed Oct 27 15:33:04 2010 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Oct 27 18:03:06 2010 -0700 |
tree | 220a53454207a479af3fa04a9ffcf836811a21f8 | |
parent | d7c7ef908b6497bb871e2e113e66e8fb0f757543 [diff] |
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>