staging: octeon-usb: check return value of platform_device_register_simple
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 3 Jun 2013 21:16:20 +0000 (02:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jun 2013 22:25:41 +0000 (15:25 -0700)
commit55fa328aecb1daf9134278b0eb660502627bf60e
tree4832f9f128c6f91d7b986784e5291d74947072e6
parent3fa98f34b8e39bbadb8bc723c0773b73b262663c
staging: octeon-usb: check return value of platform_device_register_simple

the return value is a pointer having an error set. we have to check for
IS_ERR and return PTR_ERR when appropriate

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: David Daney <ddaney.cavm@gmail.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon-usb/octeon-hcd.c