commit | 3bacb36db01c7541ffea21d4ff39219e8b211a5c | [log] [tgz] |
---|---|---|
author | Akinobu Mita <akinobu.mita@gmail.com> | Sun Dec 10 21:21:33 2006 +0100 |
committer | Jean Delvare <khali@arrakis.delvare> | Sun Dec 10 21:21:33 2006 +0100 |
tree | 52d89e1c11c22e75aabe37c5bbeeb6800e0e247c | |
parent | 250d1bd3f4ed0b50d79b3ec81ccefbabb203f916 [diff] |
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 <akinobu.mita@gmail.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Jean Delvare <khali@linux-fr.org>