diff --git a/drivers/input/mouse/psmouse-smbus.c b/drivers/input/mouse/psmouse-smbus.c index d2b1ea34feac38ea673707f4d4367585c4bdc6bc..c7ac24d119c1551174857634960d0ec0be04cfd6 100644 --- a/drivers/input/mouse/psmouse-smbus.c +++ b/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; }