powerpc/BSR: fix device_create() return value check
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Thu, 11 Mar 2010 16:15:53 +0000 (18:15 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 15 Mar 2010 14:31:04 +0000 (15:31 +0100)
commit30c96ce56a195963764de9521087202ba73e9bff
treed2efc82338c0efea307cf9cb5a1cf10f218d4e26
parent3e21ec224f0acbd2e9beeb3dea04edc1d36dbe1f
powerpc/BSR: fix device_create() return value check

Use IS_ERR() instead of comparing to NULL.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Acked-by: Sonny Rao <sonnyrao@us.ibm.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/char/bsr.c