[PATCH] cm4000_cs: fix return value check
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 17 Oct 2006 06:25:59 +0000 (15:25 +0900)
committerDominik Brodowski <linux@dominikbrodowski.net>
Tue, 5 Dec 2006 01:09:13 +0000 (20:09 -0500)
commit5eb5fc97d83ee1f8fcf3490bb81ad14a99fc544c
treef09779d3be8c51f57de1e2dbf6b2446d459e6085
parent0517793fa8f98e6f30406b1811ea0312bca3a414
[PATCH] cm4000_cs: fix return value check

The return value of class_create() need to be checked with IS_ERR().
And register_chrdev() returns errno on failure.
This patch includes these fixes for cm4000_cs and cm4040_cs.

Signed-off-by: Akinbou Mita <akinobu.mita@gmail.com>
Signed-off-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/char/pcmcia/cm4000_cs.c
drivers/char/pcmcia/cm4040_cs.c