lis3: fix misc device unregistering and printk
authorEric Piel <eric.piel@tremplin-utc.net>
Tue, 16 Jun 2009 22:34:13 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:56 +0000 (19:47 -0700)
commitc28842421cb6a29fd952043381bc5391bdf6be50
tree5d906c515d8374c61da58b1ccdc4d8125a5546fa
parent4b324126e0c6c3a5080ca3ec0981e8766ed6f1ee
lis3: fix misc device unregistering and printk

Can only unregister the misc device if it was registered before.  Also
remove debugging messages, which in addition were not properly formated.

Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/lis3lv02d.c