Fixed the i2c-dev unconnected devices Oops

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@369 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-04-07 19:47:35 +00:00
1 parent 389cc3f3ff
commit 4e5e1093de
1 file changed
+1 -1
+1 -1
View File
@@ -349,7 +349,7 @@ int i2cdev_open (struct inode *inode, struct file *file)
unsigned int minor = MINOR(inode->i_rdev);
struct i2c_client *client;
if (! i2cdev_clients[minor]) {
if ((minor >= I2CDEV_CLIENTS_MAX) || ! (i2cdev_clients[minor])) {
#ifdef DEBUG
printk("i2c-dev.o: Trying to open unattached adapter i2c-%d\n",minor);
#endif