From: Devendra Naga Date: Mon, 3 Jun 2013 21:16:20 +0000 (+0530) Subject: staging: octeon-usb: check return value of platform_device_register_simple X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~299 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55fa328aecb1daf9134278b0eb660502627bf60e;p=pandora-kernel.git 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 Cc: David Daney Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed