Andrew Morton 5abe257af8 revert "rtc: recycle id when unloading a rtc driver"
Revert commit 2830a6d20139df2198d63235df7957712adb28e5.

We already perform the ida_simple_remove() in rtc_device_release(),
which is an appropriate place.  Commit 2830a6d20 ("rtc: recycle id when
unloading a rtc driver") caused the kernel to emit

	ida_remove called for id=0 which is not allocated.

warnings when rtc_device_release() tries to release an alread-released
ID.

Let's restore things to their previous state and then work out why
Vincent's kernel wasn't calling rtc_device_release() - presumably a bug
in a specific sub-driver.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Alexander Holler <holler@ahsoftware.de>
Cc: Vincent Palatin <vpalatin@chromium.org>
Cc: <stable@vger.kernel.org>		[3.7.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-12-20 17:40:20 -08:00
..
2012-12-17 17:15:21 -08:00
2012-12-17 17:15:21 -08:00
2009-02-11 14:25:36 -08:00
2012-12-17 17:15:21 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:01 +09:00
2011-08-26 17:26:35 -07:00
2012-10-06 03:05:02 +09:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-12-17 17:15:20 -08:00
2012-12-17 17:15:21 -08:00
2012-07-30 17:25:18 -07:00
2009-04-02 01:05:32 +00:00
2012-08-16 16:13:07 +08:00
2012-03-29 18:02:10 -07:00
2012-03-23 16:58:39 -07:00
2008-11-21 01:24:38 -08:00
2008-11-14 16:37:54 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00