浏览代码

Input: psmouse - use i2c_client_type to locate i2c clients

Now that i2c_client_type structure is exported, we can use it, instead
of i2c_adapter_type, when looking for devices that are i2c clients.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Dmitry Torokhov 8 年之前
父节点
当前提交
a716a026bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/mouse/psmouse-smbus.c

+ 1 - 1
drivers/input/mouse/psmouse-smbus.c

@@ -99,7 +99,7 @@ static int psmouse_smbus_notifier_call(struct notifier_block *nb,
 		break;
 
 	case BUS_NOTIFY_REMOVED_DEVICE:
-		if (dev->type != &i2c_adapter_type)
+		if (dev->type == &i2c_client_type)
 			psmouse_smbus_detach_i2c_client(to_i2c_client(dev));
 		break;
 	}