From: Akinobu Mita Date: Sun, 10 Dec 2006 20:21:33 +0000 (+0100) Subject: i2c: Fix return value check in i2c-dev X-Git-Tag: v2.6.20-rc1~146^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bacb36db01c7541ffea21d4ff39219e8b211a5c;p=pandora-kernel.git i2c: Fix return value check in i2c-dev device_create() returns error code as pointer on failures. This patch checks the return value of device_create() by using IS_ERR(). Signed-off-by: Akinobu Mita Cc: Greg Kroah-Hartman Signed-off-by: Jean Delvare --- Reading git-diff-tree failed