alarmtimer: Drop device refcount after rtc_open()
commit179eb03268aa1da03d90f1566ea85dc1478d3ae3
authorThomas Gleixner <tglx@linutronix.de>
Wed, 4 May 2011 06:18:34 +0000 (4 08:18 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 May 2011 06:18:34 +0000 (4 08:18 +0200)
treefda7d48258075bf84f12ce143ab7cd260bbc92e8
parentce788f930b0cdf821de7ee8f84cfe8cf7fcb6311
alarmtimer: Drop device refcount after rtc_open()

class_find_device() takes a refcount on the rtc device. rtc_open()
takes another one, so we can drop it after the rtc_open() call.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c