Vasiliy Kulikov 59cca865f2 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>
2010-10-27 18:03:06 -07:00
..
2010-05-27 09:12:41 -07:00
2009-09-23 07:39:46 -07:00
2009-02-11 14:25:36 -08:00
2009-02-05 12:56:46 -08:00
2010-06-29 15:29:31 -07:00
2009-09-23 07:39:43 -07:00
2009-04-01 08:59:24 -07:00
2010-08-05 13:26:17 +01:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:43 -07:00
2009-04-02 01:05:32 +00:00
2009-09-23 07:39:43 -07:00
2010-08-11 08:59:08 -07:00
2008-11-21 01:24:38 -08:00
2008-11-14 16:37:54 -08:00
2009-12-16 07:20:00 -08:00