[PATCH] tlclk: fix platform_device_register_simple() error check
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 25 Nov 2006 19:09:35 +0000 (11:09 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 25 Nov 2006 21:28:34 +0000 (13:28 -0800)
commit5e66b0b5f187c811419ff10cfb5668c028a64d57
treeae387b8f938272ad6fbee48b5794644c9da2e14c
parent753ca4f312a4b26940e4731b4fa5dbbbbcc77e97
[PATCH] tlclk: fix platform_device_register_simple() error check

The return value of platform_device_register_simple() should be checked by
IS_ERR().

This patch also fix misc_register() error case.  Because misc_register()
returns error code.

Cc: Sebastien Bouchard <sebastien.bouchard@ca.kontron.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tlclk.c